Reputation: 5210
I use ipywidgets to display asynchronous results from processes.
import ipywidgets as widgets
results = widgets.HTML()
display(results)
It works well, results appear correctly, but when the notebook is saved, the widgets are not there anymore. Is there a way to save them with the notebook?
Upvotes: 10
Views: 2040
Reputation: 1877
There should be a menu entry in the "Widgets" menu to "Save notebook widget state". This is disabled by default to prevent widget state from bloating the notebook (widget state can often become quite large).
Upvotes: 2