Exporting Jupyter notebook with plotly to html not displaying

Viewed 37

I have a notebook with plotly plot and I would like to export it to html with nbconvert :

jupyter nbconvert test.ipynb --no-input --to html

Notebook Example :

import numpy as np
import pandas as pd
import plotly.io as pio
pio.renderers.default='notebook'
pd.set_option("plotting.backend", "plotly")

df = pd.DataFrame(np.random.normal(0, 1, size=(150, 250)))
df.sum().cumsum().plot()

Randomly, the plot does not appear on the exported html, any ideas how to fix it ?

0 Answers
Related