Skip to main content

No project description provided

Project description

LiveJS

A Jupyter kernel for JavaScript that executes code directly in your web app.

Screenshot of Jupyter and a demo web page side-by-side showing the result of running the Demo.ipynb jupyter notebook

  • 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 %%async magic at the top of each cell

Demo

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livejs-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for livejs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 25d70392d26df23a187b1d79e68af2d6db8889ad6b313b3618a8ff0ba9e200f3
MD5 19faa4ddaaf932af13442f2d0d382429
BLAKE2b-256 b4b16b0c28aee8fb3d82bd5923774f6d2b9c7184263816ec0ebae4d12e83d12b

See more details on using hashes here.

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

Hashes for livejs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd991fd147ddc6e2598cdb81c3d7893c63b617be2b40a8369c9ced3812704f13
MD5 e9473eb6813f87c9da74c01554ef884d
BLAKE2b-256 022c7383e333d716765b1a170cd3dce94e499e16d81e790db063db8acbf11544

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page