Skip to content

Error when clicking on nodes in vscode #62

@PhilReinhold

Description

@PhilReinhold

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions