Skip to content

inline marimo WASM notebooks for interactive examples #3915

@koaning

Description

@koaning

What is your suggestion?

I am working on a marimo sphinx plugin (very much WIP now) that allows folks to add directives so that users may interactively play with code on the site. This is all running via WASM.

Image

At the moment you're able to able to add directives via:

.. marimo:: path/to/notebook.py
   :height: 800px
   :width: 100%
   :theme: light

I also want to make an edit to it so that the user may press a button before any iframe is loaded. Right now the iframe auto-loads and that's not ideal for mobile users because it does cause a bunch of browser compute.

For altair?

Would this feature be something of interest to the altair project? I've been looking for a nice use-case for this project and I'll gladly put in the time to get it to work nicely on the docs here if folks are interested in it.

If folks are interested, any preference on where to place these examples?

Image

Have you considered any alternative solutions?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions