Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtpio/replite

An embeddable REPL powered by JupyterLite
https://github.com/jtpio/replite

jupyterlite pyodide python

Last synced: 3 months ago
JSON representation

An embeddable REPL powered by JupyterLite

Awesome Lists containing this project

README

        

# replite

## ⚠️ Archived ⚠️

[JupyterLite](https://jupyterlite.readthedocs.io/en/latest/) 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.

![replite-numpy](https://user-images.githubusercontent.com/591645/151983925-6e5dcc1e-b9be-4f1a-91bc-330579103e78.png)

## Usage

To embed the code console in your website:

```html

```

## 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:

```html

```

### Enable the toolbar

The toolbar can be enabled (opt-in) to add a couple of useful buttons:

```html

```

![toolbar](https://user-images.githubusercontent.com/591645/152152632-af6b7020-1dc4-450b-b9c8-1d320e6fd5a5.png)

### Auto execute code on startup

Custom starter code can automatically be executed on startup:

```html

```

https://user-images.githubusercontent.com/591645/152204519-7980e9f6-ef56-4263-bb79-4fcf3e4fd2be.mp4

### Themes

It is also possible to select a theme, for example `JupyterLab Dark`:

```html

```

Additional themes can be installed with `pip` if they are distributed as a JupyterLab prebuilt extension. For example:

```bash
pip install jupyterlab-gt-coar-theme
```

https://user-images.githubusercontent.com/591645/152374795-7b415c03-2f7b-43a1-952e-a4406ccb6c5b.mp4

## Create your custom deployment

TBD