You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add option to generate interactive gallery with replite #927
There be some work to get examples with multiple code blocks to share the same kernel between them, but even if this was just enabld for examples wiht single code blocks that would be amazing!
Is the idea that you can configure whether to add a "run in jupyterlite" to the bottom next to the download buttons? Or potentially replace the default example rendering with an interactive one? [also the link above is broken]
The :replite: seems to provide more of a repl-like experience (as might be gathered from the name), so you can't edit the example and run again. You can copy & paste the example code but that was a bit confusing for me.
Yes, but then I don't think they would share state across multiple cells. I'm thinking we might be able to get a separate page to have a full jupyterlab that can then share the jupyterlite instance for all examples which you can browse.
Right now it looks like this but maybe I can make it open in another window instead of an iframe:
Activity
amueller commentedon Jul 16, 2022
Is the idea that you can configure whether to add a "run in jupyterlite" to the bottom next to the download buttons? Or potentially replace the default example rendering with an interactive one? [also the link above is broken]
ianhi commentedon Jul 16, 2022
updated the link.
I think having an option for both would be good!
amueller commentedon Jul 16, 2022
The
:replite:seems to provide more of a repl-like experience (as might be gathered from the name), so you can't edit the example and run again. You can copy & paste the example code but that was a bit confusing for me.ianhi commentedon Jul 16, 2022
True, I think a better thing would be to use retrolite: https://jupyterlite-sphinx.readthedocs.io/en/latest/directives/retrolite.html which embeds a mini retrolab (now notebook classic i think?)
amueller commentedon Jul 16, 2022
Yes, but then I don't think they would share state across multiple cells. I'm thinking we might be able to get a separate page to have a full jupyterlab that can then share the jupyterlite instance for all examples which you can browse.

Right now it looks like this but maybe I can make it open in another window instead of an iframe:
jtpio commentedon Jul 18, 2022
Yes, for example
ipycanvasdoes this by providing a badge on the docs landing page: https://ipycanvas.readthedocs.io/en/latest/?badge=latestBorda commentedon Apr 23, 2024
Just thinking, what about some form of ipywidgets with precomputed steps?