Widgets not rendering after reloading vscode
See original GitHub issueEnvironment data
- VS Code Insiders: 1.56.0-insider 550035808407c15252e581e8abe1b820b9d311ee x64
- Jupyter Extension version (available under the Extensions sidebar): 2021.6.718745073
- Python Extension version (available under the Extensions sidebar): 2021.3.680753044
- OS (Windows | Mac | Linux distro) and version: Windows10
- Python and/or Anaconda version: 3.9.2
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jupyter server running: Remote
- IpyWidgets==7.6.3
Behavior
When I’m initializing the jupyter server, connecting the notebook for the first time and runing the following cell
from tqdm.notebook import tqdm
[k for k in tqdm(range(10))]
The ipywidget is displaying correctly. However, if I exit the notebook and comeback or if I reload the notebook, the Ipywidget does not render anymore.
When I toggle the developper tools, on reload I have the following warning
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Visual Studio Code does not render ipywidgets correctly
1 fixed all issues I was having. If you want to try it as well, you can run: pip install -U ipywidgets==7.7.1.
Read more >Visual Studio Code June 2022
Learn what is new in the Visual Studio Code June 2022 Release (1.69)
Read more >IntelliSense in Visual Studio Code
This can be caused by a variety of reasons. First, try restarting VS Code. If the problem persists, consult the language extension's documentation....
Read more >VS Code API | Visual Studio Code Extension API
Describes the behavior of decorations when typing/editing at their edges. DecorationRenderOptions. Represents rendering styles for a text editor decoration.
Read more >May 2022 (version 1.68) - Visual Studio Code
VS Code will render extensions as deprecated in the Extensions view, as shown below. A deprecated extension that is no longer being maintained....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In general IPyWidgets will not be re-loaded whether we re-load or close/re-open a notebook, unless we have https://github.com/microsoft/vscode-jupyter/issues/4404 (which is what Rich has highlighted https://github.com/microsoft/vscode-jupyter/issues/5424#issuecomment-815065089)
Validated (I think). In Insiders now if I execute a notebook with ipyvolume widgets, then reload, the widget doesn’t initially show, but I can reexecute the cell and see the widget appear in the cell output.