An embeddable REPL powered by JupyterLite
JupyterLite now includes a REPL application by default.
Check out the documentation to learn how to use it and configure it: https://jupyterlite.readthedocs.io/en/latest/quickstart/embed-repl.html
An embeddable REPL, powered by JupyterLite.
To embed the code console in your website:
<iframe src="https://replite.vercel.app/repl/index.html" width="100%" height="100%">
</iframe>
The behavior and the look of the REPL can be configured via URL parameters.
To avoid the kernel selection dialog and choose a given kernel by default:
<iframe src="https://replite.vercel.app/repl?kernel=python" width="100%" height="100%">
</iframe>
The toolbar can be enabled (opt-in) to add a couple of useful buttons:
<iframe src="https://replite.vercel.app/repl?toolbar=1" width="100%" height="100%">
</iframe>
Custom starter code can automatically be executed on startup:
<iframe src="https://replite.vercel.app/repl?kernel=python&code=import numpy as np" width="100%" height="100%">
</iframe>
https://user-images.githubusercontent.com/591645/152204519-7980e9f6-ef56-4263-bb79-4fcf3e4fd2be.mp4
It is also possible to select a theme, for example JupyterLab Dark
:
<iframe src="https://replite.vercel.app/repl?theme=JupyterLab Dark" width="100%" height="100%">
</iframe>
Additional themes can be installed with pip
if they are distributed as a JupyterLab prebuilt extension. For example:
pip install jupyterlab-gt-coar-theme
https://user-images.githubusercontent.com/591645/152374795-7b415c03-2f7b-43a1-952e-a4406ccb6c5b.mp4
TBD