Open obrown06 opened 7 months ago
According to a Jupyter core dev
That indicates that the Jupyter widgets extension is not installed. Assuming your server is running jlab 3, it can be installed by installing ipywidgets 7.6+ or by installing jupyterlab_widgets 1.0+.
Is it possible you have an environment mixup and jupyterlab_widgets
is not installed in the same environment you think it is?
Edit: But I guess that thread goes on to indicate that other scenarios can also cause this to happen. That's outside my expertise thought cc @philippjfr @mattpap
FWIW: I'm using Conda and it seems like jupyterlab_widgets
is definitely installed:
conda list | grep jupyterlab_widgets
jupyterlab_widgets 3.0.10
Also, it looks like at least someone else may be hitting the same issue: https://community.deeplearning.ai/t/replicating-chatbot-implementation-with-huggingface-open-source-models/596117.
I got the same issue. This is not new issue. It's already persising for longer
jupyter_bokeh 4.0.4 jupyter_client 8.1.0 jupyter_core 5.3.0 jupyter-events 0.7.0 jupyter-lsp 2.2.0 jupyter_server 2.7.3 jupyter_server_terminals 0.4.4 jupyterlab 4.2.1 jupyterlab-pygments 0.2.2 jupyterlab_server 2.27.2 jupyterlab_widgets 3.0.10 panel 1.4.3 voila 0.5.7
labextensions: @bokeh/jupyter_bokeh v4.0.4 enabled ok (python, jupyter_bokeh) @pyviz/jupyterlab_pyviz v3.0.2 enabled ok
You may also have a look here: https://github.com/voila-dashboards/voila/issues/1435 I am pretty sure that this is related. Unfortunately, due to a lack of knowledge, I am not in a position to make any further investigatens.
+1. Me and my colleague have the same issue when trying to use Panel in VS Code interactive environment.
I can replicate in his environment with the following steps
python -m venv .venv
source .venv/bin/activate
pip install panel jupyter_bokeh ipykernel
Open the Jupyter Interactive environment
Run
import panel as pn
pn.extension()
pn.panel("Hello World")
When I click Click to show javascript error
I see
Failed to load model class 'BokehModel' from module '@bokeh/jupyter_bokeh'
Error: No version of module @bokeh/jupyter_bokeh is registered
os: linux python extension: v2024.4.1 jupyter extension: v2023.3.100
code-server: v4.23.1
Code: 1.88.1
Commit: 9a28bc29dbddb6886dfe03dc1c31320249a901ce
Date: 2024-04-15T23:01:57.805Z (3 mos ago)
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
I have managed to get this working in one case. What is below
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
. Created and run the notebook in jupyterlab inspired by a stackoverflow responseAfter each step I tried. Only after the last step it fully worked.
I will try to find a receipe that will work from scratch
In another JupyterHub I see the below in my browser console
Error: Unable to read file 'vscode-remote://MY.DOMAIN/vscode-resource?{"requestResourcePath":"/home/jovyan/.local/share/code-server/extensions/ms-toolsai.jupyter-2024.3.1-universal/temp/scripts/af7cfb460b26abe4dbd921151f82f0407a7a48377d4530dbeb78bbfab664c42b/jupyter/@bokeh/jupyter_bokeh.js"}' (Error: Unable to resolve nonexistent file 'vscode-remote://mnr-jupyterhub.de-prod.dk/vscode-resource?{"requestResourcePath":"/home/jovyan/.local/share/code-server/extensions/ms-toolsai.jupyter-2024.3.1-universal/temp/scripts/af7cfb460b26abe4dbd921151f82f0407a7a48377d4530dbeb78bbfab664c42b/jupyter/@bokeh/jupyter_bokeh.js"}')
at n.F (fileService.ts:631:10)
at n.D (fileService.ts:616:15)
at async v (resourceLoading.ts:68:18)
at async M.yb (webviewElement.ts:743:19)
I don't believe the path MY.DOMAIN/vscode-resource
is valid. I.e. there is some proxy issue.
cc @philippjfr for any thoughts
I was not able to use steps above to find solution on the other JupyterHub.
panel version 1.4.5 does not have this issue. I installed the latest version, and running pn.extension() triggers the following error:
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.
Sources
Downgraded to 1.4.5 and the error is gone.
Sorry, missed this entirely. Will have to do some digging because 4.0.5 definitely does exist on npm
:
https://www.npmjs.com/package/@bokeh/jupyter_bokeh?activeTab=versions
Possibly the same issue : https://github.com/bokeh/jupyter_bokeh/issues/209
I'm trying to integrate a
Tabulator
into a Voila application as follows:I'm getting the following rendered error:
And the following errors in the javascript console:
The relevant package versions:
Anyone have an idea what might be going wrong here? Happy to redirect the query elsewhere if this isn't the right place. Thanks!