plotly_express icon indicating copy to clipboard operation
plotly_express copied to clipboard

Plots don't show up in nbviewer

Open choldgraf opened this issue 4 years ago • 2 comments

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 avatar Aug 13 '19 20:08 choldgraf

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

choldgraf avatar Aug 13 '19 20:08 choldgraf

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?

rj180492 avatar Jun 01 '22 15:06 rj180492