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.0.tar.gz
(9.1 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.0-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file livejs-0.1.0.tar.gz.
File metadata
- Download URL: livejs-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3173476bc5b26abf0f14421c45e4dd16a285fe2dc86275d5fb241a78803b6d3e
|
|
| MD5 |
503fbaf58d6bc854d3d4c98c9d661c73
|
|
| BLAKE2b-256 |
4d968fa49e04d83621061d230a1b3e718176c1d903c5348562e9f3a0e73c2262
|
File details
Details for the file livejs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: livejs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155512e33e51fd4e9cc2ae9d338bf943d00a1f53278b71f668c992a6008a3f67
|
|
| MD5 |
f67381060cfc819e3bd060388bf91a54
|
|
| BLAKE2b-256 |
64804559d181d08c95b48d130bf7277887f2089bfe4a8b6361b5fd760826d9ec
|