-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hvplot does not render in code cells, panel widgets #1208
Comments
I did more tests. It is not bokeh, there is something going on. I duplicated the code below in two identical notebooks.
I had a case when, after opening both, one of them worked, the other did not display the image (there were several messages |
Hi @yt87, if you have hvPlot installed in an environment that is not your JupyterLab environment, you also need to install |
But please, could you make sure that it all works as expected if you install |
I did more testing. My enviroments:
It does not work in
So, it seems that bokeh versions must match exactly. Is there a section in the documentation that would tell me which components belong to the jupyter environment, and which should go to the client side? I looked at https://docs.bokeh.org/en/latest/docs/first_steps/installation.html and https://panel.holoviz.org/getting_started/installation.html, the scenario of separate environmens is not covered. |
Hi @yt87, you should not have to deal with installing client-side versions of Bokeh, the Python and client versions should be the same. I've been able to reproduce (part of?) your problem, by:
In which case, in the second notebook, the plot isn't rendered at all. @philippjfr do you happen to know if that is a fundamental limitation of Bokeh in JupyterLab, i.e. that there can't be multiple versions of Bokeh loaded over multiple notebooks? Or is this a bug (potentially a very hard one to fix)? For what it's worth @yt87, Jupyter Notebook (not Lab) doesn't suffer from the same issue, each notebook being in its own browser tab helps avoiding this kind of issue. |
In recent versions of Panel I started adding support for loading multiple versions of Bokeh and allowing users to switch between them. If this is not working right, that's to be considered a Panel bug at this point. |
Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at Discourse instead. Issues without the required information below may be closed immediately.
ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
hvplot 0.9.0
bokeh 3.3.2
panel 1.3.4
holoviews 1.18.1
jupyterlab 4.0.9
Description of expected behavior and the observed behavior
This happened after update of bokeh from 3.3.1. There are two issues:
I tried both firefox and chromium browsers. The javascript console log output is shown below.
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: