-
Notifications
You must be signed in to change notification settings - Fork 289
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
Perspective widget does not load in VS Code #15406
Labels
bug
Issue identified by VS Code Team member as probable bug
ipywidgets
Rendering, loading, saving, anything to do with IPyWidgets
Comments
s1lvester
changed the title
vscode-jupyter should be able to download widgets through ssh to the remote-ssh
vscode-jupyter should be able to download widgets through ssh to the remote host
Mar 20, 2024
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
DonJayamanne
changed the title
vscode-jupyter should be able to download widgets through ssh to the remote host
Perspective widget does not load in VS Code
Mar 27, 2024
The problem is not remote SSH, perspective widget does not load even in local desktop. |
DonJayamanne
added
ipywidgets
Rendering, loading, saving, anything to do with IPyWidgets
and removed
info-needed
Issue requires more information from poster
labels
Mar 27, 2024
Edit: my issue is with I am running into the same issue locally in pipefunc/pipefunc#323:
Is there any workaround @DonJayamanne that you could think of? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Issue identified by VS Code Team member as probable bug
ipywidgets
Rendering, loading, saving, anything to do with IPyWidgets
Edited by Don, as the widget does not load in regular desktop (not just SSH or the like).
Show Logs
Environment data
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:
Install vscode remote-ssh with python and vscode-jupyter.
Configure remote-ssh to download all extensions locally (
"remote.downloadExtensionsLocally": true,
)Install and run a python package that uses a Widget - in this case "perspecitve":(https://perspective.finos.org/docs/python/#perspectivewidget)
vscode-jupyter is unable to download from jsdeliver.com and unpkg.com, since the remote has not internet, which leads to a timeout.
Validation
Widget works fine I when I start a Jupyterlab Server on the Remote Host and Access it via https in a Webbrowser:
Logs
Output for
Jupyter
in theOutput
Output for the
Click to show javascript error.
MessageTerminal-Output for the
nbextensions
andlabextensions
Directories on the remote server.By the way
I still think this is somewhat related to #14762 because vscode-jupyter could just reference the widget files from the remote-host?
The text was updated successfully, but these errors were encountered: