Open s1lvester opened 3 months ago
Please could you enable logging as follows:
Jupyter->Logging
verbose
Jupyter
output panel.I'm interested in the python env used to run the cells.
And some entries like getDataDirsImpl
in the logs.
Feel free to obfuccate paths (e.g. removing user names, we already do that).
However I'd appreciate it if you can leave most of the logs intact, that.s
OK here's the dump.
The problem is not remote SSH, perspective widget does not load even in local desktop. I assumed that it works for desktop and only fails in remote SSH, However thats not the case
Edited by Don, as the widget does not load in regular desktop (not just SSH or the like).
Show Logs
## Environment data - VS Code version: 1.87.2 - Jupyter Extension version: v2024.2.0 - Python Extension version: v2024.2.1 - OS (Windows | Mac | Linux distro) and version: NT x64 10.0.19045 on Client, Ubuntu 20.04 on remote. - Python and/or Anaconda version: 3.9.18 - Type of virtual environment used: N/A - Jupyter server running: Remote-SSH ## Expected behaviour Widget-Download from `"jupyter.widgetScriptSources": ["jsdelivr.com", "unpkg.com"]`, should be downloaded locally, when "Download Extensions Locally" is configured in Remote-SSH. Alternatively vscode-jupyter should use the extension.js from the remote-host from `~/.local/share/jupyter/nbextensions/` or `~/.local/share/jupyter/labextensions/` ## Actual behaviour vscode-jupyter tries and fails to download ScriptSources from "jsdelivr.com", "unpkg.com" - which leads to a timeout, since the remote is "airgapped" In this concrete case the Widget-files in - `~/.local/share/jupyter/nbextensions/@finos/perspective-jupyterlab` - `~/.local/share/jupyter/labextensions/@finos/perspective-jupyterlab` are ignored even though there seems to be logic implemented to search for these as documented here: https://github.com/microsoft/vscode-jupyter/wiki/Component:-IPyWidgets#loading-3rd-party-source ## Steps to reproduce: 1. Install vscode remote-ssh with python and vscode-jupyter. 2. Configure remote-ssh to download all extensions locally (`"remote.downloadExtensionsLocally": true,`) ![image](https://github.com/microsoft/vscode-jupyter/assets/4028418/2d5921f2-4084-47c9-9169-3d794c41b10a) 3. Install and run a python package that uses a Widget - in this case "perspecitve":(https://perspective.finos.org/docs/python/#perspectivewidget) 4. vscode-jupyter is unable to download from jsdeliver.com and unpkg.com, since the remote has not internet, which leads to a timeout. ![2024-03-20 10_18_28-Window](https://github.com/microsoft/vscode-jupyter/assets/4028418/358d9335-c85f-4de3-8f7e-4179fca82d2d) ## Validation Widget works fine I when I start a Jupyterlab Server on the Remote Host and Access it via https in a Webbrowser: ![2024_03_20_12_00_03_New_Session_mbockhacker_2024_01_KHK_Entlassmedikation_mbockhacker_Cloude](https://github.com/microsoft/vscode-jupyter/assets/4028418/a90d83b8-8d03-42ed-94bf-f7642d582e92) ## LogsOutput for
Jupyter
in theOutput
``` 10:16:11.925 [info] Process Execution: /usr/local/bin/python ~/.vscode-server/extensions/ms-toolsai.jupyter-2024.2.0/pythonFiles/printJupyterDataDir.py 10:16:13.382 [info] Handle Execution of Cells 0,1,2,3 for ~/notebooks/DEV/DEV-mb.ipynb 10:16:13.388 [info] End cell 0 execution after 0s, completed @ undefined, started @ undefined 10:16:13.499 [info] Kernel acknowledged execution of cell 1 @ 1710926173499 10:16:14.884 [info] End cell 1 execution after 1.384s, completed @ 1710926174883, started @ 1710926173499 10:16:14.896 [info] Kernel acknowledged execution of cell 2 @ 1710926174896 10:16:15.019 [info] End cell 2 execution after 0.123s, completed @ 1710926175019, started @ 1710926174896 10:16:15.031 [info] Kernel acknowledged execution of cell 3 @ 1710926175030 10:16:15.553 [info] [32mFetch Script for {"moduleName":"@finos/perspective-jupyterlab","moduleVersion":"~2.9.0","requestId":"@finos/perspective-jupyterlab:~2.9.0:1710926175531"} 10:16:15.553 [info] [32mFetch Script for @finos/perspective-jupyterlab 10:16:15.554 [info] [32mSearching for Widget Script @finos/perspective-jupyterlab#~2.9.0 using cdns jsdelivr.com unpkg.com 10:16:16.031 [info] End cell 3 execution after 1.001s, completed @ 1710926176031, started @ 1710926175030 10:17:15.553 [error] Widget load failure {} [ 'jsdelivr.com', 'unpkg.com' ] { className: '',
moduleName: '@finos/perspective-jupyterlab',
moduleVersion: '~2.9.0',
isOnline: true,
timedout: true,
error: '{}'
}
10:17:15.613 [error] Widget load failure {} [ 'jsdelivr.com', 'unpkg.com' ] {
className: 'PerspectiveModel',
moduleName: '@finos/perspective-jupyterlab',
moduleVersion: '~2.9.0',
isOnline: true,
timedout: false,
error: '{}'
}
10:18:22.881 [error] Widget Script @finos/perspective-jupyterlab#~2.9.0 was not found on on any cdn
10:18:22.882 [warn] Widget Script Source not found for @finos/perspective-jupyterlab@~2.9.0 from cdn
10:18:22.884 [warn] Widget Script Source not found for @finos/perspective-jupyterlab@~2.9.0 from local
10:18:22.884 [error] Script source for Widget @finos/perspective-jupyterlab@~2.9.0 not found in cdn, local
10:18:22.884 [info] [32mScript for @finos/perspective-jupyterlab, is undefined from undefined
```
Output for the
Click to show javascript error.
Message``` Error: No version of module @finos/perspective-jupyterlab is registered at ph.loadClass (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4099813) at ph.loadClass (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4403287) at ph.loadModelClass (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4097773) at ph._make_model (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4094616) at ph.new_model (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4092246) at ph.handle_comm_open (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4091039) at https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-renderers-1.0.17/out/node_modules/%40vscode/jupyter-ipywidgets8/dist/ipywidgets.js:2:4402511 at n._handleCommOpen (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-2024.2.0/dist/webviews/webview-side/ipywidgetsKernel/ipywidgetsKernel.js:3:80955) at async n._handleMessage (https://vscode-remote+ssh-002dremote-002bcdsw.vscode-resource.vscode-cdn.net/home/cdsw/.vscode-server/extensions/ms-toolsai.jupyter-2024.2.0/dist/webviews/webview-side/ipywidgetsKernel/ipywidgetsKernel.js:3:82830) ```
Terminal-Output for the
nbextensions
andlabextensions
Directories on the remote server.``` cdsw@u8lkaf207dm5tzjv:~$ ls -l ~/.local/share/jupyter/nbextensions/@finos/perspective-jupyterlab total 10820 -rw-r--r-- 1 cdsw cdsw 90338 Mar 19 10:19 extension.js -rw-r--r-- 1 cdsw cdsw 4840 Mar 19 10:19 extension.js.map -rw-r--r-- 1 cdsw cdsw 4610375 Mar 19 10:19 index.js -rw-r--r-- 1 cdsw cdsw 6363285 Mar 19 10:19 index.js.map cdsw@u8lkaf207dm5tzjv:~$ ls -l ~/.local/share/jupyter/labextensions/@finos/perspective-jupyterlab total 12 -rw-r--r-- 1 cdsw cdsw 202 Mar 19 10:19 install.json -rw-r--r-- 1 cdsw cdsw 2538 Mar 19 10:19 package.json drwxr-xr-x 2 cdsw cdsw 4096 Mar 19 10:19 static ```