This integration lets you log any standalone HTML string object or file with Neptune API and have it displayed interactively in the Neptune UI.
This guide will show you how to:
Initialize Neptune and create a
Make sure you have the
pip install neptune-client
import neptune.new as neptunerun = neptune.init(api_token='<your_api_token>', project='<your_project_name>')
Executing this cell will give you a link looking like:
common/html-support replaced by your project, and
HTMLSUP-13 replaced by your run.
Click on the link to open the run in Neptune. For now, it is empty but keep the tab with the run open to see what happens next.
html_str = "<button type='button', style='background-color:#005879; width:400px; height:400px; font-size:30px'> <a style='color: #ccc', href='https://docs.neptune.ai'> Take me back to the docs!<a> </button>"with open('sample.html', 'w') as f:f.write(html_str)
The object can be found in the All metadata section:
You’ve learned how to:
Initialize Neptune and create a run,
Log HTML string objects to Neptune,
Log HTML files to Neptune.
Now that you know how to log HTML objects to Neptune, you can learn: