PyScript: An open source platform for Python in the browser

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. jupyterlite

    Wasm powered Jupyter running in the browser đź’ˇ

    There is jupyerlite which does exactly that https://github.com/jupyterlite/jupyterlite

    Kernels are compiled to wasm and can therefore run in the browser.

    Try it out at: https://jupyterlite.readthedocs.io/en/stable/_static/lab/ind...

    Its easy to create your own deployments, there is a template repo for that https://github.com/jupyterlite/demo

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. pyscript

    PyScript is an open source platform for Python in the browser. Try PyScript: https://pyscript.com Examples: https://tinyurl.com/pyscript-examples Community: https://discord.gg/HxvBtukrg2

  4. I've been looking for something like this, but I'm still unsure it quite hits the spot. I think that this would be very interesting if it allows a person to run a blog like a Jupyter notebook.

    I have a lightweight hack [1] that runs Python in markdown documents and can output basic images/graphs - which is embedded into static pages. The point was being able to write an article that somebody else could see the code behind it and test themselves, e.g. [2]. One of the browsers I test in is Netsurf with JS disabled. Unfortunately it doesn't look great in Lynx.

    [1] https://gitlab.com/danbarry16/pandoc-highlight-filter

    [2] https://coffeespace.org.uk/projects/langtons-ant-universe.ht...

  5. brython

    Brython (Browser Python) is an implementation of Python 3 running in the browser

  6. demo

    JupyterLite demo deployed to GitHub Pages 🚀 (by jupyterlite)

    There is jupyerlite which does exactly that https://github.com/jupyterlite/jupyterlite

    Kernels are compiled to wasm and can therefore run in the browser.

    Try it out at: https://jupyterlite.readthedocs.io/en/stable/_static/lab/ind...

    Its easy to create your own deployments, there is a template repo for that https://github.com/jupyterlite/demo

  7. data-contract-playground

    Playground site for creating/validating data contracts

    I recently went down the rabbit hole of using PyScript for running a Python CLI app in the browser.

    It felt hacky the whole time, especially when dependencies were involved. I had to create wrapper classes to work around Pydantic 2.x not being available to use. I tried to put all logic into the Python files but found some things missing that I had to put in JavaScript.

    I think it could be good in use cases where you want some simple UI with custom UI logic on top of your Python code but maybe Streamlit or Gradio could be more suitable.

    GitHub repo: https://github.com/data-catering/data-contract-playground

    Website: https://data-catering.github.io/data-contract-playground/

  8. biwascheme

    Scheme interpreter written in JavaScript

  9. LIPS

    Scheme based powerful lisp interpreter in JavaScript

  10. pypyjs

    PyPy compiled to JavaScript

    > Will this always necessarily be substantially slower than Javascript?

    Yes, interpreted Python will always be slower than JIT-compiled JavaScript.

    PyPy.js [0] is a JIT compiler for Python that runs in the browser - its performance could be similar to JS but its development is currently “sleeping”.

    [0] https://github.com/pypyjs/pypyjs

  11. dotdevelop

    MonoDevelop is a cross platform .NET IDE

    MonoDevelop was also really nice. So much so, it looks like they copied it into Visual Studio for Mac???[0]

    In any regard, C# has some of the richest tooling I've seen for any programming language, I do wish Microsoft would invest even marginally into MonoDevelop again.

    [0]: https://www.monodevelop.com/

  12. ruby.wasm

    ruby.wasm is a collection of WebAssembly ports of the CRuby.

    Arguably, VB6 and Ruby have a pretty similar syntax. And Wasm is first class in the Ruby build farm. https://github.com/ruby/ruby.wasm

  13. ltk

    Write browser apps entirely in Python

    Also, check out PySheets (https://pysheets.app), which leverages PyScript to run Python logic in a spreadsheet UI, which is written entirely in Python. The PySheets UI uses LTK (https://github.com/pyscript/ltk), a fully client-side UI rendering library for PyScript.

  14. proposal-type-annotations

    ECMAScript proposal for type syntax that is erased - Stage 1

    Maybe as part of the Flutter/Dart sales story?

    Here is the current status of the standard proposal.

    https://tc39.es/proposal-type-annotations/

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