spylang/spy

Make it possible to use the playground for interactive docs

Offen

#312 geöffnet am 15.11.2025

 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Python (60 Forks)auto 404
help wantedplayground

Repository-Metriken

Stars
 (803 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T 20h) (22 gemergte PRs in 30 T)

Beschreibung

It would be awesome to have a version of the playground which we can embed in documentation and/or blog posts to have interactive snippets.

This is similar in spirit to what @JeffersGlass showed in his excellent pycon talk, with a twist: I think that in his talk, Jeff uses the standard py-editor component, while for spy we probably cannot (because the standard py-editor automatically executes the code with micropython/pyodide, while what we want is to save the content to a virtual file and call the spy cli).

Contributor Guide