Skip to content
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

Error when clicking on nodes in vscode #62

Open
PhilReinhold opened this issue Apr 29, 2022 · 1 comment
Open

Error when clicking on nodes in vscode #62

PhilReinhold opened this issue Apr 29, 2022 · 1 comment

Comments

@PhilReinhold
Copy link

When running the example notebook when using vscode

image

However, I do actually see the widget rendering at this point (so the above may be a red herring). However, clicking on any of the nodes produces this error message:

image

The widgets work fine in Jupyter lab with Firefox.

Poking around a bit I see that the widget defines an _id attribute which defaults to "#". I wonder if maybe vscode is misinterpreting this attribute or reserves that attribute for internal use, and if the problem might be fixed by renaming _id. I tried testing this, but I couldn't actually get vs code to load locally defined ipytree widgets.

ipytree = 0.2.1
ipywidgets = 7.7.0

VS Code version info:
Version: 1.66.2
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:20.994Z (2 wks ago)
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Darwin x64 20.6.0

@janhurst
Copy link

janhurst commented Jun 2, 2022

I'm seeing the same issue. Clicking on a node in the tree results in a modal dialog from vscode:
image
If I go ahead and create the file (named "#"), clicking a node will open the file in the vscode editor pane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants