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

element variable not defined when rendering IPyWidgets #6054

Closed
1 task done
DonJayamanne opened this issue Jun 1, 2021 · 6 comments
Closed
1 task done

element variable not defined when rendering IPyWidgets #6054

DonJayamanne opened this issue Jun 1, 2021 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jun 1, 2021

Solutions
* [ ] We must have our custom application/javascript renderer which adds the element variable in context
* [ ] Register nbextension/.... modules when kernel starts & loads (tracked & possibly fixed here #10434)

There could be plenty of widgets that rely on these, hence don't work.

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Jun 1, 2021
@DonJayamanne DonJayamanne changed the title IPyWidget issues IPyWidget issues - nbextension/... modules not defined and element variable not defined Jun 1, 2021
@greazer greazer added the ipywidgets Rendering, loading, saving, anything to do with IPyWidgets label Aug 3, 2021
@DonJayamanne DonJayamanne self-assigned this Mar 10, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Mar 10, 2022

Are you going to load widgets from the python nb_extensions folder?

@DonJayamanne
Copy link
Contributor Author

we already do that today, the proposal is to list more files from there

@rchiodo
Copy link
Contributor

rchiodo commented Mar 10, 2022

nbextensions folder has to be added to require.js so that if a widget depends upon other files, they can be found.

@DonJayamanne
Copy link
Contributor Author

nbextensions folder has to be added to require.js so that if a widget depends upon other files, they can be found.

Yes, again we do this today, we copy the files to another directory.

@dentistfrankchen
Copy link

I believe now a lot of error behavior might be caused by the internal mechanism vscode uses to handle javascript.

@DonJayamanne DonJayamanne changed the title IPyWidget issues - nbextension/... modules not defined and element variable not defined element variable not defined when rendering IPyWidgets Jun 16, 2022
@DonJayamanne DonJayamanne removed their assignment Sep 6, 2022
@DonJayamanne
Copy link
Contributor Author

This should now be fixed in the latest release.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets
Projects
None yet
Development

No branches or pull requests

4 participants