I just tried to use plotly offline in a jupyter notebook (using jupyter lab). The docs gives this example:
import plotly
import plotly.graph_objs as go
plotly.offline.init_notebook_mode(connected=True)
plotly.offline.iplot({
"data": [go.Scatter(x=[1, 2, 3, 4], y=[4, 3, 2, 1])],
"layout": go.Layout(title="hello world")
})
I tried it and there is no chart displayed, either in Edge or Firefox.
An output cell is made in the notebook, but there is no chart.
It works if I use plotly.offline.plot rather than iplot. It works if I use the traditional jupyter notebook rather than jupyter lab.
Any ideas why it does not display?
It's plotly version 2.7.0.