-
Notifications
You must be signed in to change notification settings - Fork 297
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
Widgets not rendering after reloading vscode #5424
Comments
Ok thanks for the information, |
I'm reproing that too. Very weird. Although closing and reopening the notebook makes it work for me. My guess is that reloading a kernel does not remove the preload scripts that the first kernel added. This interferes with ipywidgets working. |
I tested, and I need to kill all runing kernel (via the rest API) and then reload the window. If I do that, the IpyWidgets works again. Just closing the notebook an reopening it doesn't work for me |
If VS code provides a way to detect this we should use it, or we need to set some global state to detect this ourselves. |
In general IPyWidgets will not be re-loaded whether we re-load or close/re-open a notebook, unless we have #4404 (which is what Rich has highlighted #5424 (comment)) |
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. |
Environment data
Behavior
When I'm initializing the jupyter server, connecting the notebook for the first time and runing the following cell
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
The text was updated successfully, but these errors were encountered: