Conversation
|
@kushalkolal do you have an idea to what degree people make use of jupyter_rgb's snapshot utility? If this new backend becomes the default for notebooks, these people can still explicitly import the |
|
Another idea: rename the |
In the fastplotlib notebook test we actually use snapshot, but the notebook test has been broken for a while with the latest Perhaps the havoc is worth it since it's a major improvement? |
|
@almarklein FWIW I don't have anyone using rfb snapshots and I don't use them myself |
|
For the record, as part of all this work, I also refactored The advantages are mainly:
One issue is that there are now two backends for notebooks, which may cause some confusion. I'd propose to make this the new default and keep the jupyter_rfb backend for a while in case people specifically want to use it. Regarding snapshots, I've thought about it some more, and I think I want to keep them (i.e. port them to this PR), but in a somewhat different form than |
|
As you discuss here, the snapshot has been a useful placeholder saying "there are outputs here, you just can't view them in this context". I have been taking this feature for granted ...
If this would allow the snapshot to include a small interactive video, that would be immensely useful for making tutorials where I can just render videos directly from the notebook outputs rather than saving a video and rendering it with sphinx. |
mmm ... apng ... 🤔 |
|
lol I saw mpeg and thought maybe we could make the snapshot a movie... I guess that would then be several snapshots |
|
Well, images can be embedded like Maybe |
This adds a backend based on
anywidget.It is very similar to the
jupyterbackend (which usesjupyter_rfb), but it has no dependencies other than anywidget. This makes it more readily available.The code is quite similar to
jupyter_rfb:renderview.js(and we already have that JS module for pyodide)renderview-rfb.jsis also shared.anywidetbackend they are private.The main differences: