Skip to main content

jupyter notebook widget with a scatter plot and an interactive lens

Project description

sonivis-lens-widget

Build Status codecov

jupyter notebook widget with a scatter plot and an interactive lens

Installation

You can install using pip:

pip install sonivis_lens_widget

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] sonivis_lens_widget

You can upgrade using pip:

pip install sonivis_lens_widget --upgrade --upgrade-strategy only-if-needed

Development Installation

Create a dev environment:

conda create -n sonivis_lens_widget-dev -c conda-forge nodejs yarn python jupyterlab
conda activate sonivis_lens_widget-dev

or

python -m venv venv
source venv/Scripts/activate
pip install nodejs jupyterlab jupyter-packaging

Install the python. This will also build the TS package.

pip install -e ".[test, examples]"

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 .
npm run build

For classic notebook, you need to run:

jupyter nbextension install --sys-prefix --symlink --overwrite --py sonivis_lens_widget
jupyter nbextension enable --sys-prefix --py sonivis_lens_widget

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.

To use symlinks in Windows 10, you can turn on Windows' developer mode.

How to see your changes

Typescript:

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
npm run 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 Distribution

sonivis_lens_widget-0.1.4.dev0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sonivis_lens_widget-0.1.4.dev0-py2.py3-none-any.whl (3.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file sonivis_lens_widget-0.1.4.dev0.tar.gz.

File metadata

  • Download URL: sonivis_lens_widget-0.1.4.dev0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for sonivis_lens_widget-0.1.4.dev0.tar.gz
Algorithm Hash digest
SHA256 74f8f1e5abcf35cfcea5eaf0e136369e8248eabfc84aeb0c6a6616c5f343a2a9
MD5 88335e4dd46c70f14e3497ba481a3aea
BLAKE2b-256 132ea85208ab62381166bae831e19acf59d18b9911b22fd0dea568463fd63dcd

See more details on using hashes here.

File details

Details for the file sonivis_lens_widget-0.1.4.dev0-py2.py3-none-any.whl.

File metadata

  • Download URL: sonivis_lens_widget-0.1.4.dev0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for sonivis_lens_widget-0.1.4.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 644b96bbfa414a990210d7b854a9c4f2b1d7ab9ba494bee5ae2dc56863f1354a
MD5 e08408a47516d62f81052f1de6131e05
BLAKE2b-256 8b8748be20dbd17315820a697ba8cc12e66982ee06bf19679d1fbf6563d00e21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page