Plots not showing up in Jupyter Lab (Plotly 3.0)


#1

I can simply not see anything plotted in Jupyter Lab. When I use init_notebook_mode, it shows a blank space for plots but the plot is still not shown.

from plotly.offline import plot, iplot
import plotly.graph_objs as go

keys=[‘one’,‘two’,‘three’]
values=[1,2,3]

iplot({
“data”: [go.Bar(x=keys, y=values)],
“layout”: go.Layout(title=“Sample Bar Chart”)
})
This simply gives no output.


#2

Hey @shreyasbapat

try adding plotly.offline.init_notebook_mode(connected=True) https://plot.ly/python/getting-started/#initialization-for-offline-plotting


#3

Hi! I am sorry. It’s solved. I installed the plotly extension for Jupyter Lab