Skip to content

Add option to generate interactive gallery with replite #927

@ianhi

Description

@ianhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions