mirror of
https://github.com/pyscript/pyscript.git
synced 2026-04-19 02:00:21 -04:00
PyScript Core Documentation (#1560)
This commit is contained in:
committed by
GitHub
parent
bf6470c046
commit
9121071ba3
@@ -17,7 +17,7 @@
|
||||
whenDefined("mpy").then(console.log);
|
||||
define("mpy", {
|
||||
interpreter: "micropython",
|
||||
async onRuntimeReady(micropython, element) {
|
||||
async onInterpreterReady(micropython, element) {
|
||||
console.log(micropython);
|
||||
// Somehow this doesn't work in MicroPython
|
||||
micropython.io.stdout = (message) => {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { define } from "@pyscript/core";
|
||||
define("lua", {
|
||||
interpreter: "wasmoon",
|
||||
async onRuntimeReady(wasmoon, element) {
|
||||
async onInterpreterReady(wasmoon, element) {
|
||||
// Somehow this doesn't work in Wasmoon
|
||||
wasmoon.io.stdout = (message) => {
|
||||
console.log("🌑", wasmoon.type, message);
|
||||
|
||||
Reference in New Issue
Block a user