In-Browser Editor
Add a <py-editor>
tag anywhere on your page to create an editable, runnable code-editor on the page:
Editors are a worker-only feature - you will need to conigure your server to use the appropriate headers, or use a shim like mini-coi.js.
ENV
By default, all py-editor
s of a given type willl reuse the same interpreter/worker. To separate different editors or groups of editors into using different interpreters, use the named env
attribute:
Add a <mpy-editor>
tag anywhere on your page to create an editable, runnable code-editor on the page:
Editors are a worker-only feature - you will need to conigure your server to use the appropriate headers, or use a shim like mini-coi.js.
ENV
By default, all mpy-editor
s of a given type willl reuse the same interpreter/worker. To separate different editors or groups of editors into using different interpreters, use the named env
attribute: