sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.

Home Page:https://cowasm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

native Microsoft Windows command line python-wasm terminal

williamstein opened this issue · comments

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...