Inline Python Editors

With iframe on bottom.ch/ksr/py/embed.html, which is based on pyodide and codemirror.

<html><iframe frameborder="0" width="100%" allow="clipboard-write" src="https://tkilla77.github.io/python_editor_wasm/embed.html?autorun&code=print%28%27Hello%2C+dokuwiki%21%27%29"></iframe></html>

<!-- Include the script once (or from a DokuWiki plugin, or from userscripts. -->
<html><script type="module" src="https://bottom.ch/ksr/ed/bottom-editor.js"></script></html>
 
<!-- Include a custom component in HTML. -->
<html><bottom-editor>print(42)</bottom-editor></html>

print(42) print(21)

Also based on pyodide, but with jupyter support all around.

<iframe
  src="https://jupyterlite.github.io/demo/repl/index.html"
  width="100%"
  height="500px"></iframe>
  • user/hof/pyeditor.1716323971.txt.gz
  • Zuletzt geändert: 2024-05-21 20:39
  • von hof