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.0.tar.gz (9.1 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.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for livejs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3173476bc5b26abf0f14421c45e4dd16a285fe2dc86275d5fb241a78803b6d3e
MD5 503fbaf58d6bc854d3d4c98c9d661c73
BLAKE2b-256 4d968fa49e04d83621061d230a1b3e718176c1d903c5348562e9f3a0e73c2262

See more details on using hashes here.

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

Hashes for livejs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 155512e33e51fd4e9cc2ae9d338bf943d00a1f53278b71f668c992a6008a3f67
MD5 f67381060cfc819e3bd060388bf91a54
BLAKE2b-256 64804559d181d08c95b48d130bf7277887f2089bfe4a8b6361b5fd760826d9ec

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