Skip to main content

A terminal for JupyterLite

Project description

jupyterlite-terminal

Github Actions Status lite-badge

A terminal for JupyterLite.

⚠️ This extension is still in development and not yet ready for general use. ⚠️

a screenshot showing a terminal running in JupyterLite

Requirements

  • JupyterLite >= 0.4.0

Install

To install the extension, execute:

pip install jupyterlite-terminal

You will also need to install the JupyterLite CLI:

python -m pip install --pre jupyterlite-core

Usage

After installing jupyterlite-core and jupyterlite-terminal, create a jupyter-lite.json file with the following content to activate the terminal extension:

{
  "jupyter-lite-schema-version": 0,
  "jupyter-config-data": {
    "terminalsAvailable": true
  }
}

Then build a new JupyterLite site:

jupyter lite build

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Change directory to the jupyterlite_terminal directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab

Then build a JupyterLite distribution with the extension installed:

jupyter lite build

And serve it:

jupyter lite serve

Packaging the extension

See RELEASE

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

jupyterlite_terminal-0.1.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

jupyterlite_terminal-0.1.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file jupyterlite_terminal-0.1.1.tar.gz.

File metadata

  • Download URL: jupyterlite_terminal-0.1.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for jupyterlite_terminal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4a92668991f39b06580d3b7280672156905f6709f832dd825aa24d627ce0b67
MD5 9d68c3764c9aac4fc7587204fe7fd320
BLAKE2b-256 56ecff5e30c4ad2abe136980ed40a92772ca9430125af702f6f5d27944e88ae6

See more details on using hashes here.

File details

Details for the file jupyterlite_terminal-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlite_terminal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe4287cb074afadddfd7eb42d359d47134e5bbe574e636fe053f7f0ec592dbf9
MD5 68327ecc2dd57fca7ef9b1f728aa73a2
BLAKE2b-256 00395e363e491a82f1c9d5e3669206c7738914f3f30bce9c85c3f762c935154a

See more details on using hashes here.

Supported by

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