sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.
https://cowasm.org
BSD 3-Clause "New" or "Revised" License
482 stars 23 forks source link

native Microsoft Windows command line python-wasm terminal #20

Closed williamstein closed 1 year ago

williamstein commented 1 year ago

Right now with a native windows terminal and node.js 16 official binaries, you can install python-wasm:

npm install python-wasm

and start the CLI and use it as follows:

node> require('python-wasm').terminal()
...
> Python ...
>>> import math
>>> math.[tab] works

Amazingly, readline (hence tab completion, line editing, etc.,) actually fully works. However, it's tedious to have to type node, then require, etc., to start things. The point of this issue is just to provide a script like bin/python-wasm that directly starts the cli. I'm not sure how important this is...

williamstein commented 1 year ago

closing in favor of https://github.com/sagemathinc/cowasm-desktop