bokeh / jupyter_bokeh

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

Calling BokehModel in vscode (interactive cell) results in Error: No version of module @bokeh/jupyter_bokeh is registered #209

Open samimia-swks opened 3 days ago

samimia-swks commented 3 days ago

python 3.12 on Ubuntu (vscode + WSL) bokeh v3.6.1 jupyter-bokeh v4.0.5 jupyter-core v5.7.2

I am trying to push updates to a bokeh figure inside a vscode interactive enviroment (.py file with cell tags) using these instructions: https://stackoverflow.com/questions/77841047/how-to-update-a-bokeh-plot-inside-vscode-jupyter-notebook

So basically :

from bokeh.plotting import figure, output_notebook
from IPython.display import display
from jupyter_bokeh.widgets import BokehModel

output_notebook()

plot = figure(title='Update Example', x_axis_label='Time', y_axis_label='Value')
line = plot.line([], [])
handle = display(BokehModel(plot))

This results in the following error

No version of module @bokeh/jupyter_bokeh is registered

Image

and a vscode pop up with the message:

Unable to find widget '@bokeh/jupyter_bokeh' version '^4.0.5' from configured widget sources ["jsdelivr.com","unpkg.com"]. Expected behavior may be affected. Click here for more information.

MarcSkovMadsen commented 3 days ago

I have simulator issue and not Ben avle to use panel in VS code for a while.