plotly_ipywidget_notebooks
plotly_ipywidget_notebooks copied to clipboard
Example from web page runs once, stops working in restarted jupyter lab notebook
I ran the code from https://plot.ly/python/click-events/ in jupyter lab It works fine, I can mark the points and they change their color.
If close the the jupyter lab window and start it again, I get the following error message in the anaconda prompt:
[IPKernelApp] WARNING | No such comm: f1017aced23e4d9495e2ec9e4a095da3
The error is not completely reproducable. I ran one of the examples from the notebooks here yesterday and it worked yesterday but failed to run today. I created a new notebook with the same example (https://github.com/jonmmease/plotly_ipywidget_notebooks/blob/master/notebooks/Interact.ipynb) and again, it worked, but this time it kept working even after signing out and back into jupyter lab.
conda info gives the following:
active environment : ****
active env location : C:\Users\***\AppData\Local\Continuum\anaconda3\envs\kw_env
shell level : 2
user config file : C:\Users\***\.condarc
populated config files : C:\Users*.condarc conda version : 4.7.10 conda-build version : 3.18.8 python version : 3.7.3.final.0 virtual packages : base environment : C:\Users*\AppData\Local\Continuum\anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users*\AppData\Local\Continuum\anaconda3\pkgs C:\Users*.conda\pkgs C:\Users*\AppData\Local\conda\conda\pkgs envs directories : C:\Users*\AppData\Local\Continuum\anaconda3\envs C:\Users*.conda\envs C:\Users*\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.7.10 requests/2.22.0 CPython/3.7.3 Windows/10 Windows/10.0.17763 administrator : False netrc file : None offline mode : False
The workaround is to shut down the kernel, close the notebook, and reopen it. The interactive figures will work again.