spylang/spy

Make it possible to use the playground for interactive docs

Ouverte

#312 ouverte le 15 nov. 2025

 (5 commentaires) (0 réaction) (1 personne assignée)Python (60 forks)auto 404
help wantedplayground

Métriques du dépôt

Stars
 (803 étoiles)
Métriques de merge PR
 (Merge moyen 11j 20h) (22 PRs mergées en 30 j)

Description

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).

Guide contributeur