mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-22 23:01:29 -05:00
Added __terminal__ in non-persistent donkey (#2260)
This commit is contained in:
committed by
GitHub
parent
0d74a60227
commit
d143b229ed
@@ -6,7 +6,8 @@ const { stringify } = JSON;
|
||||
const invoke = (name, args) => `${name}(code, ${args.join(", ")})`;
|
||||
|
||||
const donkey = ({ type = "py", persistent, terminal, config }) => {
|
||||
const args = persistent ? ["globals()", "__locals__"] : ["{}", "{}"];
|
||||
const globals = terminal ? '{"__terminal__":__terminal__}' : "{}";
|
||||
const args = persistent ? ["globals()", "__locals__"] : [globals, "{}"];
|
||||
|
||||
const src = URL.createObjectURL(
|
||||
new Blob([
|
||||
|
||||
Reference in New Issue
Block a user