Skip to content

desktopgame/python-playground

 
 

Repository files navigation

このリポジトリはフォークです。

変更箇所

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

オリジナル
https://github.com/vwh/python-playground

以下、原文

tgram

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.


Preview

Features


Python in Browser

WebAssembly Powered

Library Support
• Run Python code instantly
• No server-side processing
• Immediate feedback and results
• Pyodide integration
• Near-native performance
• Seamless Python execution
• Install packages via micropip
• Access to wide range of libraries
• Expand functionality on-the-fly

Terminal Commands

Intuitive Interface

Fast and Responsive
• Support for pwd, clear, etc.
• Familiar command-line experience
• Enhanced debugging capabilities
• Clean and modern UI design
• User-friendly code editor
• Intuitive layout and controls
• Quick code execution
• Responsive editor interface
• Smooth user experience

Contributing

Contributions are welcome! Feel free to open a pull request with your improvements or fixes.

License

Under the MIT License. See License for more information.

About

WebAssembly Browser-based Python interpreter playground

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.0%
  • JavaScript 9.2%
  • HTML 8.7%
  • CSS 5.1%