I have some example notebooks in my custom widget repository that I want to update to use the latest version of the JS package whenever I release a new version, but I find it difficult to get it right on first try and often end up with old widget states still in my notebooks.
From experimenting I think the required steps are:
- Open notebook
- Clear cell output
- Clear widget state
- Refresh page
- Execute cells
- Save widget state
(this seems consistent with this comment)
Step 4 seems to be required -- perhaps some widget state persists in the client-side JS even after running "clear widget state". Is this intended? If so, can it be made clearer that this step is necessary, because running "clear widget state" sounds like it should be enough?
I wasn't sure what minimal example would help but I can try to put one together if needed.
I have some example notebooks in my custom widget repository that I want to update to use the latest version of the JS package whenever I release a new version, but I find it difficult to get it right on first try and often end up with old widget states still in my notebooks.
From experimenting I think the required steps are:
(this seems consistent with this comment)
Step 4 seems to be required -- perhaps some widget state persists in the client-side JS even after running "clear widget state". Is this intended? If so, can it be made clearer that this step is necessary, because running "clear widget state" sounds like it should be enough?
I wasn't sure what minimal example would help but I can try to put one together if needed.