How to use Neptune with Plotly#
Plotly is one of the most common Python graphing libraries for interactive graphs. With Neptune, you can log interactive 2D and 3D charts generated in Plotly.
Before you start#
To follow the guide without any setup, run the Colab example.
- Sign up at neptune.ai/register.
- Create a project for storing your metadata.
Have Plotly and Neptune installed:
neptune-client already installed
Important: To smoothly upgrade to the
1.0 version of the Neptune client library, first uninstall the
neptune-client library and then install
Plotly is not compatible with newer Matplotlib versions (
3.5.0+) due to the fact that
mpl_to_plotly() uses deprecated Matplotlib functionalities.
Plotly logging example#
Import Neptune and start a run:
If you haven't set up your credentials, you can log anonymously:
Create a sample figure:
Upload the interactive figure:
To stop the connection to Neptune and sync all data, call the
To open the run, click the Neptune link that appears in the console output.
The resulting figure is logged as an HTML object.
You can view it in the All metadata section.