変更箇所
- エディター部分を Monaco から CodeMirror へ変更
- これにより、スマートフォンでも正常にエディットできます
- クエリパラメーターで gist のIDとファイル名を渡せるように変更
- 例えばこんな風に使います。デモ
- これにより、notionにnotion上で実行可能なコードを埋め込むことができます。
- また、このときマジックコメントを読み取って自動でパッケージをインストールします。
# @pip package-name
のように指定します。
オリジナル
https://github.com/vwh/python-playground

Browser-based Python playground built using WebAssembly (Pyodide) and ReactJS. Run and test Python code directly in your browser with an interactive and user-friendly interface.

Contributions are welcome! Feel free to open a pull request with your improvements or fixes.
Under the MIT License. See License for more information.