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
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.
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 :
This results in the following error
No version of module @bokeh/jupyter_bokeh is registered
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.