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

demo-video.mp4

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.2.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.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file livejs-0.1.2.tar.gz.

File metadata

  • Download URL: livejs-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a715d42ae5f291aac4e3ad85d2f73fced3bb6f614966df5e39d138bd6fb87e92
MD5 1f7da7e0d3f931231e87dfb5acd5b6d5
BLAKE2b-256 671465d774893e9b196c45bc7cb4106a03f78fe7f11d2283a59a1d1019ea1355

See more details on using hashes here.

File details

Details for the file livejs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: livejs-0.1.2-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

Hashes for livejs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d9658bb01213552944042625e492ded86b98e0e36df163bb76c57efcf123d3
MD5 d032f76a083c4d0dbee94be71df097d2
BLAKE2b-256 2ed550b94934cb06d5191140baa9f3c3c4cdf526d986d6617f6ca8c818469f40

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