I would like to dynamically modify a figure after it has been shown in a jupyter notebook. Ideally this could be done in a single cell, but manipulating a figure in a following cell would work as well.
Currently if I try to call ‘add_traces’ on a figure in a cell following an initial call to .show() I get a new figure displayed. If I do this in a loop N times with a sleep between calls I get N new figures.
The messages system seems to imply that python should be able to communicate with an existing JS frontend, but I don’t seem to be able to get this to work in a notebook.
Is this possible and, if so, how would I accomplish this?
Thanks for any help or pointers!