bokeh / jupyter_bokeh

An extension for rendering Bokeh content in JupyterLab notebooks
BSD 3-Clause "New" or "Revised" License
253 stars 48 forks source link

Plots made with Bokeh do not re-render when refreshing Jupyter notebook tab #98

Closed cuspime closed 4 years ago

cuspime commented 4 years ago

When I refresh the page of my Jupyter notebook, no Bokeh plots are shown. As suggested on this thread, I am using

output_notebook(hide_banner=True)

But this does not solve the problem. Is there a way to have the plots to show automatically in its latest state before refreshing, like matplotlib or seaborn do.

Is it possible to show them on GitHub or nbviewer?

bryevdv commented 4 years ago

@cuspime apologies, I meant on the main repo: https://github.com/bokeh/bokeh

bryevdv commented 4 years ago

Is it possible to show them on GitHub or nbviewer?

AFAIK nbconvert still functions as expected. Please know that it will likely never be possible to see live Bokeh plots on GitHub, because GitHub scrubs all JavaScript when it renders notebooks, and Bokeh plots require JavaScript to display. We have no control over this.

bryevdv commented 4 years ago

I just checked with jupyter nbconvert --to html quickstart.ipynb and and Bokeh 2.0.1 and i generated rendered notebook HTML with plots included.

bryevdv commented 4 years ago

That said, I have not been able to get nbviewer.org in particular to refresh new content. Others seem to be having an issue as well, there is an issue here https://github.com/jupyter/nbviewer/issues/914