Widget to display and interact with Bayesian Networks in JupyterLab.
Project description
thomas-jupyter-widget
Widget to display and interact with Bayesian Networks in JupyterLab. This version only supports JupyterLab >= 3.
Regular Installation
The package can be installed through pip
:
pip install thomas-jupyter-widget
Development Installation
First ensure that nodejs
(>=12) and yarn
are installed. In debian, you can use the following if you have sudo
privileges:
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
# Running apt-get update is not necessary, since it's alread called in the
# above setup script.
sudo apt-get install -y nodejs
# Install yarn properly. The version of yarn that's available by default is
# just weird.
sudo apt-get remove cmdtest
sudo npm install --global yarn
Second, depending on your situation, you may want to create a virtual environment. For example, this might be useful if the command jupyter labextension develop --overwrite .
fails because it cannot write to the system-wide extensions folder (e.g. /usr/local
). Under debian/ubuntu, a virtual environment can be created as follows:
# Install the virtualenv package to make life easier
pip install virtualenv
# Create a virtual environment in the subdirectory '.venv'
virtualenv .venv
# Activate the virtual environment.
source .venv/bin/activate
After the preliminaries, install the package as follows:
# Clone the repository and move into the directory
git clone https://github.com/mellesies/thomas-jupyter-widget.git
cd thomas-jupyter-widget
# Checkout branch jupyter3
git checkout jupyter3
# Install the package in editable mode.
pip install -e .
# We need the latest version of JupyterLab, otherwise this will fail
pip install git+https://github.com/jupyterlab/jupyterlab
# link your development version of the extension with JupyterLab
jupyter labextension develop --overwrite .
# watch the source directory, automatically rebuilding when needed
yarn --cwd ./js run watch
Then, start JupyterLab like you normally would in a separate terminal (and don't forget to activate the virtual environment if you're using one ;-).
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
File details
Details for the file thomas-jupyter-widget-0.1.2.tar.gz
.
File metadata
- Download URL: thomas-jupyter-widget-0.1.2.tar.gz
- Upload date:
- Size: 307.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e364157032ea6cdba915556d551a7083d9eb25d82790b0642ecf6209ea30b8d |
|
MD5 | 9fd67649dfe9f551b77e446d42b104e1 |
|
BLAKE2b-256 | a85aa8a1f93ef2425f0af7c7311a5aee3e5dff82fa698102be37c4d5b9a143c0 |
File details
Details for the file thomas_jupyter_widget-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: thomas_jupyter_widget-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 483.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7270ad3c0af7a24006e2b02b0d5f5e95dbc0eb4fb9ae8dd3309879b38b6f54a |
|
MD5 | 05c20d4c3fc49cd718aa38d86b1ced40 |
|
BLAKE2b-256 | 19c3b4da28de1863c0e8d3a80d86b511407c7711805ce8ac2df4f496459639e4 |