Neptune-plotly IntegrationΒΆ

This integration lets you log interactive charts generated in plotly, like confusion matrix or distribution, in Neptune.

plotly neptune.ai integration

Follow these steps:

  1. Create an experiment:

    import neptune
    
    neptune.init(api_token='ANONYMOUS',project_qualified_name='shared/showroom')
    neptune.create_experiment()
    
  2. Create and log plotly figures into Neptune:

    import plotly.express as px
    
    df = px.data.tips()
    plotly_fig = px.histogram(df, x="total_bill", y="tip", color="sex", marginal="rug",
                       hover_data=df.columns)
    
    from neptunecontrib.api import log_chart
    
    log_chart(name='plotly_figure', chart=plotly_fig)
    
  3. Explore the results in the Neptune dashboard:

Check out this experiment in the app.

image