Pyodide: Python for the Browser

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pyodide

    Pyodide is a Python distribution for the browser and Node.js based on WebAssembly

  • If you just open an HTML file in your browser via its local path (e.g. /home/user/...) the browser will prevent you from loading other files by JS due to CORS. So we need a web-server to set the appropriate CORS headers. Any web-server would do.

    For inline code, yes it would be doable someone would need to continue https://github.com/pyodide/pyodide/pull/692

    For examples, I'll respond in the Pyodide issue where you commented.

  • Transcrypt

    Python 3.9 to JavaScript compiler - Lean, fast, open! -

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • py2many

    Transpiler of Python to many other languages

  • I'm looking into a python -> dart -> js approach. Emphasis on static type checking and small feature set that's easy to understand.

    https://github.com/adsharma/py2many/

    Made a new release earlier today:

    https://adsharma.github.io/py2many0.2.1/

  • starboard-notebook

    In-browser literate notebooks

  • If you want to play with Pyodide in a web notebook you can try Starboard [1][2].

    A sibling comment introduces JupyterLite and Brython, which are Jupyer-but-in-the-browser, whereas with Starboard I'm trying to create what Jupyter would have been if it were designed for the browser first.

    As it's all static and in-browser, you can embed a notebook (or multiple) in a blog post for instance to power interactive examples. The bundle size is a lot smaller than JupyerLite for the initial load - it's more geared towards fitting into existing websites than being a complete IDE like JupyerLab.

    [1] https://github.com/gzuidhof/starboard-notebook

    [2] https://starboard.gg

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts