# Import necessary libraries import neptune from neptune.types import File # Initialize Neptune and create a new run run = neptune.init_run(api_token=neptune.ANONYMOUS_API_TOKEN, project="common/html-support") # Create a sample HTML string object html_str = """""" # Create a sample HTML file with open("sample.html", "w") as f: f.write(html_str) # Log HTML file run["html_file"].upload("sample.html") # Log HTML string object run["html_obj"].upload(File.from_content(html_str, extension="html")) # Tracking will stop automatically once script execution is complete