plotly / plotly_express

Plotly Express - Simple syntax for complex charts. Now integrated into plotly.py!
https://plot.ly/python/plotly-express/
MIT License
4 stars 0 forks source link

Plots don't show up in nbviewer #133

Open choldgraf opened 5 years ago

choldgraf commented 5 years ago

I'm trying to save my notebook with plotly express figures inside, and then share them with others using nbviewer. Currently, the areas where plots show up in JupyterLab have blank spaces instead:

https://nbviewer.jupyter.org/github/jupyterhub/binder-billing/blob/master/analyze_data.ipynb?flush_cache=true

per this page I tried setting the renderer to notebook_connected but this didn't seem to fix things.

Is there any guidance or guide on how to create plotly plots in jupyterlab, and then display them in a page like nbviewer?

choldgraf commented 5 years ago

I take it back! I figured it out - nbviewer just hadn't updated its cache properly. It now works! I just needed to set "flush_cache" to "True" instead of "true":

nbviewer.jupyter.org/github/jupyterhub/binder-billing/blob/master/analyze_data.ipynb?flush_cache=True

rj180492 commented 2 years ago

I am facing the same issue. Tried using the above method by adding "?flush_cache=True" but still the graphs are showing blank on nbviewer.

https://nbviewer.org/github/rj180492/Python/blob/main/Covid-19%20Impacts%20Analysis%20using%20Python.ipynb?flush_cache=True

Can anybody suggest something?