0.0.7 • Published 3 years ago

@programmingplus/pyjs v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

PyJS

Python (CPython) in the browser.

Demo

Getting Started

You can import the latest PyJS from CDN directly:

<pre id="output"></pre>

<script type="module">
  import { run } from "https://cdn.jsdelivr.net/npm/@programmingplus/pyjs";

  const output = (s) => (document.getElementById("output").textContent += s);
  run(`print(42 ** 42)`, { writeStdout: output, writeStderr: output });
</script>

CodePen

Or, you may install PyJS with npm:

$ npm install --save @programmingplus/pyjs

Purpose

To port CPython to the browser for education so that people can

  • run simple Python code directly in the browser
  • type things to standard input interactively
  • retrieve data from standard output and standard error
0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago