No project description provided
Project description
LiveJS
A Jupyter kernel for JavaScript that executes code directly in your web app.
- Use this kernel for quick interactive feedback by running snippets of JavaScript within your web app and viewing the results from Jupyter.
- Written from scratch with the kernel hosted from Python.
- No JavaScript dependencies. No NodeJS.
Note: This project is in very early development and may not have a smooth user experience.
Install
- Install the uv Python package manager
$ curl -LsSf https://astral.sh/uv/install.sh | sh
- Install Jupyter
$ uv tool install jupyterlab $ uv tool install jupyter-core
- Install LiveJS
$ uv tool install git+https://tangled.org/cduck.me/livejs
- Install the LiveJS kernel into Jupyter
$ livejs-install --user OR $ livejs-install --sys-prefix
Usage
- Launch Jupyter
$ cd my/working/directory $ jupyter lab
- Within the Jupyter interface, create a new notebook and select the kernel "LiveJS"
- In the first cell, run
%serve "path/to/my/webroot", "localhost", 5000 - In the other cells, run JavaScript!
- Advanced: For async Javascript, put the
%%asyncmagic at the top of each cell
Demo
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
livejs-0.1.1.tar.gz
(9.0 kB
view details)
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
livejs-0.1.1-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file livejs-0.1.1.tar.gz.
File metadata
- Download URL: livejs-0.1.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d70392d26df23a187b1d79e68af2d6db8889ad6b313b3618a8ff0ba9e200f3
|
|
| MD5 |
19faa4ddaaf932af13442f2d0d382429
|
|
| BLAKE2b-256 |
b4b16b0c28aee8fb3d82bd5923774f6d2b9c7184263816ec0ebae4d12e83d12b
|
File details
Details for the file livejs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: livejs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd991fd147ddc6e2598cdb81c3d7893c63b617be2b40a8369c9ced3812704f13
|
|
| MD5 |
e9473eb6813f87c9da74c01554ef884d
|
|
| BLAKE2b-256 |
022c7383e333d716765b1a170cd3dce94e499e16d81e790db063db8acbf11544
|