Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML ipywidgets state is not saved with the notebook

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?

like image 972
jamborta Avatar asked May 31 '16 09:05

jamborta


1 Answers

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).

like image 70
Vidar Avatar answered Sep 23 '22 21:09

Vidar