Widget state not being saved correctly
See original GitHub issueHi there,
I am working on using ipycanvas for a data annotation widget. Typically, I document my widget packages by:
- writing a jupyter notebook with the widgets in
- executing them manually (once)
- saving them using the jupyter notebook
Widgets > Save widget state
functionality - include them in my sphinx documentation using nbsphinx
This works well for some widgets (e.g. here, where the buttons are still interactive).
However, when I try and do this with ipycanvas
widgets (I am nesting a MultiCanvas inside a VBox), the widgets are not displayed properly.
Is there an issue there that I’m missing? Do I need to do anything “special” to include ipycanvas widgets? Or is it an ipycanvas bug?
Thanks very much, Jan
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
HTML ipywidgets state is not saved with the notebook
1 Answer 1 ... There should be a menu entry in the "Widgets" menu to "Save notebook widget state". This is disabled by...
Read more >Managing the state of a Widget using bloc | Flutter - FlutterDevs
Suppose we have this Widget tree and we need to update only on development in the Widget tree but if we use setState(),...
Read more >JSDoc: Widget: interactiveGrid - Oracle Help Center
If the save was successful then the status property equals "success". selectionchange. Triggered when the selection state changes and will work ...
Read more >Creating forms from models - Django documentation
When you use a save() on a form, all data – including many-to-many data – is saved without the need for any additional...
Read more >Custom Widgets - FlutterFlow Docs
Make sure your pub.dev widget has Null Safety support. This is required to use the Custom Widget in FlutterFlow.
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
This is now fixed in
0.4.2
! Please give it a try 😃It is available with
pip
, not yet withconda
. You need to setsync_image_data
toTrue
on your canvas for it to work.Thanks - yes, I tried using
sync_image_data
and like you say this doesn’t solve the issue. And really, the static image is all I would want - it’s mainly so I can (programatically) show what a canvas onto which I’ve drawn a few things would look like.