iplot doesn't display the graph at first in a new browser
See original GitHub issuehi, I use Plotly with Jupyter Notebook and it seems that the function to call ipilot in offline mode doesn’t always show the graph.
for example:
import plotly
import plotly.graph_objs as go
plotly.offline.init_notebook_mode()
trace = go.Bar(x=[2, 4, 6], y= [10, 12, 15])
data = [trace]
layout = go.Layout(title='A Simple Plot', width=800, height=640)
fig = go.Figure(data=data, layout=layout)
plotly.offline.iplot(fig)
after accessing the Jupyter Notebook online, when I first go in the notebook with the preview’s code, it will not show the graph, I’ll need to refresh the tab of the notebook after some time to see it.
there is no error in the console nor anywhere.
plotly version : 1.12.0 python version : 3.4.3 IPython version : 4.2.0
Kevin.
Issue Analytics
- State:
- Created 7 years ago
- Comments:25 (3 by maintainers)
Top Results From Across the Web
Plotly chart not showing in Jupyter notebook - Stack Overflow
I followed the steps on the Plotly website and the chart still doesn't show in the notebook. This is my code for the...
Read more >Plotly doesn't load most of the time - Plotly Python
py file from the Windows native command line and got the same behavior. Again, your code shows the graph the first time I...
Read more >[fastpages] Plotly plot doesn't load, JS error in browser - nbdev
The first cell shows in the notebook, but #hide prevents it from being rendered by fastpages and throwing errors in the browser. The...
Read more >Retain current plot when adding new plots - MATLAB hold
MATLAB ® adjusts axes limits, tick marks, and tick labels to display the full range of data. If axes do not exist, then...
Read more >AWR Design Environment User Guide: 7.1. Working with Graphs
Display of a live graph, schematic, system diagram, or layout (AWR Microwave Office ... Right-click Graphs in the Project Browser and choose New...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I change plotly version to 1.9.5 and the fig show again. I find “init_notebook_mode()” has no parameter at version 1.9.5. But has a default parameter at version 1.12.6.
save the notebook and refresh the brower
it works for me