A chat extension for Jupyterlab
Project description
jupyterlab_ws_chat
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyterlab_ws_chat-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95518ebbdeb2735a7e749e415d2d2e9d598c343263481cd75d4d2f6fce11ff2 |
|
MD5 | eda1f4a9158a8ba1d026f7f825a4d862 |
|
BLAKE2b-256 | 9a93a4df52c4762d55ee7c3879fb328307891e8dc9df90abf97f6bebf2b952c2 |