question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to generate interactive gallery with replite

See original GitHub issue

Proposal

Add an option to use jupyterlite to have make a gallery of interactive examples.

How

Using jupyterlite it’s now possible to have interactive python repl on a webpage without a backing from binder. https://jupyterlite-sphinx.readthedocs.io/en/latest/directives/replite.html provides a :replite: sphinx directive that enables this. Naively I’d expect that replacing the ..code-block:: with :replite might just give automatic interactivity.

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!

cc @jtpio @martinRenou

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ianhicommented, Jul 16, 2022

updated the link.

“run in jupyterlite” to the bottom next to the download buttons? Or potentially replace the default example rendering with an interactive one?

I think having an option for both would be good!

0reactions
jtpiocommented, Jul 18, 2022

maybe I can make it open in another window instead of an iframe

Yes, for example ipycanvas does this by providing a badge on the docs landing page: https://ipycanvas.readthedocs.io/en/latest/?badge=latest

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started - Reptile Scan
The leading tracking app for mainting your reptiles. Use the app to quickly register activities. Scan, feed, clean, pair, clutch and much more....
Read more >
reptile - PyPI
Reptile is a command-line interface for Python. Specifically, Reptile helps with producing interactive REPL-like software.
Read more >
Keeping Your Leopard Gecko Entertained - YouTube
Transcript · 5 TIPS TO MAKE YOUR GECKO LOVE YOU! · 10 DOs and DON'Ts of Reptile Keeping! · 16 Things That Leopard...
Read more >
Reptiles - Theme and activities - Educatall
Workshop ideas, activities that foster motor skills, outdoor fun, crafts, and more material to explore the fascinating world of reptiles!
Read more >
Virtual Reptile Parties & Events
Our Virtual Reptile Shows include the following: either a 30-45 minutes: 5 animals or a 45 mins-1 hour: 8 animals, a feeding of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found