Custom JupyterLab Extension for the embeddable replite console
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
replite
An embeddable REPL, powered by JupyterLite.
Usage
To embed the code console in your website:
<iframe src="https://replite.vercel.app/retro/consoles/index.html" width="100%" height="100%">
</iframe>
Configuration
The behavior and the look of the REPL can be configured via URL parameters.
Select a kernel by default
To avoid the kernel selection dialog and choose a given kernel by default:
<iframe src="https://replite.vercel.app/retro/consoles?kernel=python" width="100%" height="100%">
</iframe>
Enable the toolbar
The toolbar can be enabled (opt-in) to add a couple of useful buttons:
<iframe src="https://replite.vercel.app/retro/consoles?toolbar=1" width="100%" height="100%">
</iframe>
Auto execute code on startup
Custom starter code can automatically be executed on startup:
<iframe src="https://replite.vercel.app/retro/consoles?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
Create your custom deployment
TBD
Development
# create a new environment
mamba create -n replite -c conda-forge jupyterlab=3 jupyter-packaging python nodejs -y
conda activate replite
# Install JupyterLite
python -m pip install jupyterlite
# Install package in development mode
python -m pip install -e .
# Link your development version of the extension
jupyter labextension develop . --overwrite
# Rebuild extension TypeScript source after making changes
jlpm run build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replite-0.1.1.tar.gz.
File metadata
- Download URL: replite-0.1.1.tar.gz
- Upload date:
- Size: 149.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f65b5dbd10b85eb020cb20dbcf0e1ea5da9c4d68c87c29951600f72c1a65b36
|
|
| MD5 |
4114e0bd963c1124acd8a052ab284681
|
|
| BLAKE2b-256 |
3f8bfaa6b61543b48efe5ee18b03fcd88f32405230ba8675d4a2f2c9fdaed8f2
|
File details
Details for the file replite-0.1.1-py3-none-any.whl.
File metadata
- Download URL: replite-0.1.1-py3-none-any.whl
- Upload date:
- Size: 101.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c379979cfbe1ad2337275e57a98c483bc896370a92bb430db5824c6fd9983086
|
|
| MD5 |
c41bfd36747cb8dfe6d6fe6d40af783f
|
|
| BLAKE2b-256 |
28a3737edb7b409e273b09262b1a273a29a34acab2c690d1336157aa57b7afd7
|