Skip to main content

A chat extension for Jupyterlab

Project description

jupyterlab_ws_chat

Github Actions Status

A chat extension for Jupyterlab

This package is composed of a Python package named jupyterlab_ws_chat for the server side and a NPM package named jupyterlab-ws-chat

screenshot

Requirements

  • JupyterLab >= 4.0.0

Install

To install the package, execute:

pip install jupyterlab_ws_chat

Uninstall

To remove the package, execute:

pip uninstall jupyterlab_ws_chat

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 jupyter-chat/jupyterlab-ws-chat directory
# Install package in development mode
pip install -e ".[test]"
# Rebuild Typescript source after making changes
jlpm build

By default, the jlpm build command generates the source maps for this package to make it easier to debug using the browser dev tools.

Development uninstall

pip uninstall jupyterlab_ws_chat

Testing the package

Server tests

This extension is using Pytest for Python code testing.

Install test dependencies (needed only once):

pip install -e ".[test]"

To execute them, run:

pytest -vv -r ap --cov jupyterlab_ws_chat

Frontend tests

This extension is using Jest for JavaScript code testing.

To execute them, execute:

jlpm
jlpm test

Integration tests

This extension uses Playwright for the integration tests (aka user level tests). More precisely, the JupyterLab helper Galata is used to handle testing the extension in JupyterLab.

More information are provided within the ui-tests README.

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

jupyterlab_ws_chat-0.2.0.tar.gz (214.4 kB view details)

Uploaded Source

Built Distribution

jupyterlab_ws_chat-0.2.0-py3-none-any.whl (116.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_ws_chat-0.2.0.tar.gz.

File metadata

  • Download URL: jupyterlab_ws_chat-0.2.0.tar.gz
  • Upload date:
  • Size: 214.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for jupyterlab_ws_chat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 52060a3ef2600a7b0cf2a6f4c039cd7db969b0a7d3ef1d48e20bdfd607ae11ce
MD5 1f7870cbcb006cef00548d39deebd19b
BLAKE2b-256 7d9e265939f1368c8b26d28a68d20338015a82e7b8b0855c2820119923dc2a07

See more details on using hashes here.

File details

Details for the file jupyterlab_ws_chat-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_ws_chat-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bee7f81d479718a28637a4eb18172d22ae7a971dd740c091008f6965ad882e93
MD5 5a8924de55193bf2f79d49840dd1ff47
BLAKE2b-256 b4e7b1b46de0e92c60f0702a8484713ca0b7b09f041899836aacde6f702f646b

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