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

push_notebook not updating plot #56

Closed parente closed 5 years ago

parente commented 6 years ago

Installed versions:

To reproduce:

  1. Load the Notebook Handles example (https://bokeh.pydata.org/en/latest/docs/user_guide/notebook.html#notebook-handles)
  2. Run the cells up to and including the one that changes the fill color to white and calls push_notebook
  3. Note the plot does not update.

The JS console appears to contain errors about not being able to register a comm. Best guess: some kind of ipywidgets 7.4 compatibility problem.

rcthomas commented 6 years ago

I see the same issue with the interactors demo as well (https://bokeh.pydata.org/en/latest/docs/user_guide/notebook.html#jupyter-interactors)

Same version of everything. The console says "Exception opening new comm" and then "Object '...' not found in registry"

schniewmatz commented 6 years ago

I have the same problem and decided to fall back to an older environment:

and installed jupyterlab_bokeh in version 0.6.1 This fallback works for me. You find the environment yml file attached if you want to get back to work fast. You can install it in conda with:
conda env create --file environment.yml

The environment is more or less minimal except for the scipy package.
I had to zip the file as GitHub does not allow the .yml type to be uploaded environment.zip

flutefreak7 commented 5 years ago

I thought I was getting this issue and somehow discovered that I was using bokeh in JupyterLab without having the extension installed?! I didn't think it was possible to see bokeh javascript content in JupyterLab without the extension - but I was able to do everything except push_notebook just fine. After installing the extension, push_notebook works for me in JupyterLab now.

I'm wondering if something caused the extension to fall off the list of installed extensions, but still half work in the shadows? Maybe I updated JupyterLab, but not the extension? Not sure, but a (re)-install of the extension fixed it for me.

bryevdv commented 5 years ago

I'm wondering if something caused the extension to fall off the list of installed extensions, but still half work in the shadows?

I heard the Jupyter devs relented and allowed some limited JS execution without extensions. I have not looked in to things, but that would explain things (and also be the only explanation I can imagine)