jupyter widget bindings for the motif library
Project description
motif
Jupyter widget bindings for the motif library
Development
For a more thorough walkthrough check out the official guide: https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Custom.html
Create a new conda environment with the dependencies
To create the environment, execute the following command:
conda create -n motif -c conda-forge jupyterlab nodejs python
Then activate the environment with:
conda activate motif
Build and install the widget for development
Since the widget contains a Python part, you need to install the package in editable mode:
python -m pip install -e .
If you are using JupyterLab:
jupyter labextension develop --overwrite .
If you are using the Classic Notebook:
jupyter nbextension install --sys-prefix --symlink --overwrite --py motif_jupyter
jupyter nbextension enable --sys-prefix --py motif_jupyter
Installing the js dependencies:
npm install
To continuously monitor the project for changes and automatically trigger a rebuild, start Jupyter in watch mode:
jupyter lab --watch
And in a separate session, begin watching the source directory for changes:
npm run start
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
A demo notebook file can be found at examples/introduction.ipynb
Installation
You can install using pip
:
pip install motif
Or if you use jupyterlab:
pip install motif
jupyter labextension install @jupyter-widgets/jupyterlab-manager
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:
jupyter nbextension enable --py [--sys-prefix|--user|--system] motif
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 Distributions
Built Distribution
File details
Details for the file motif_jupyter-0.0.1b5-py2.py3-none-any.whl
.
File metadata
- Download URL: motif_jupyter-0.0.1b5-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20f46692b3528977478191b25f5e3a544d3006c2e5bc7c3a2cf8e0fa69bb8df |
|
MD5 | 40c6740e4ec66b188581852e7acfb121 |
|
BLAKE2b-256 | 1d382436e7826ba2ff5b8e4b82fd6166c7cc1c7f48c973b7df696500c41ec2f0 |