In jupyter notebook, My code do run.. just not showing graph.
I have tried many way..
My example code, picture.
My Code & picture
import plotly.offline as pyo
import plotly.graph_objs as go
pyo.init_notebook_mode()
trace0 = go.Scatter(
x=[1, 2, 3, 4],
y=[5, 8, 2, 7]
)
trace1 = go.Scatter(
x=[1, 2, 3, 4],
y=[1, 5, 13, 2]
)
data = [trace0, trace1]
pyo.iplot(data, filename = 'ex')
And, I click a button; Download plot as png...
downloaded newplot.svg; open a file...
explorer
Capture newplot.svg
In new tap explorer, This graph show well.
why in jupyter notebook poltly not showing graph?
Just in case version. Add my python package version;
- Python 3.7.4
- plotly 4.5.2
- numpy 1.16.6
- seaborn 0.9.0
- pandas 0.25.3