A Custom Jupyter Widget Library
Project description
gallavant
A Custom Jupyter Widget Library
Installation
You can install using pip:
pip install gallavant
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] gallavant
Development Installation
Create a dev environment:
conda create -n gallavant-dev -c conda-forge nodejs yarn python jupyterlab
conda activate gallavant-dev
Install the python. This will also build the TS package.
pip install -e .
When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:
jupyter labextension develop --overwrite .
yarn run build
For classic notebook, you need to run:
jupyter nbextension install --sys-prefix --symlink --overwrite --py gallavant
jupyter nbextension enable --sys-prefix --py gallavant
Note that the --symlink flag doesn't work on Windows, so you will here have to run
the install command every time that you rebuild your extension. For certain installations
you might also need another flag instead of --sys-prefix, but we won't cover the meaning
of those flags here.
How to see your changes
Jupyter Notebook:
For Jupyter Notebook you can just watch for JS changes:
yarn watch
Jupyter Lab:
If you use JupyterLab to develop then 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 widget.
# Watch the source directory in one terminal, automatically rebuilding when needed
yarn watch
# Watch to rebuild JupyterLab
jupyter labextension watch
# Run JupyterLab in another terminal
jupyter lab
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gallavant-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: gallavant-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae037f1b4302f3b760b308d18bca8e98c679d3d6212093e7431b5ef4e0453b8
|
|
| MD5 |
2011ad8a0cdb421f22f3da43c0092373
|
|
| BLAKE2b-256 |
ff56221c2832074e2eff63b77fa48c771506a9a14726d7fc008603851d1c8730
|