spylang/spy

Make it possible to use the playground for interactive docs

开放

#312 创建于 2025年11月15日

 (5 条评论) (0 个反应) (1 位负责人)Python (60 个派生)auto 404
help wantedplayground

仓库指标

星标
 (803 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南