A JupyterLab extension to explore and visualize HDF5 file contents.
Project description
jupyterlab-h5web
jupyterlab-h5web is a JupyterLab extension to explore and visualize HDF5 file contents, using the web-based viewer h5web. h5web supports the NeXus format.
See Usage for more details.
Requirements
- JupyterLab 2
Install
Note: You will need NodeJS to install the extension.
pip install jupyterlab_h5web
jupyter lab build
To enable support for additional filters such as blosc or bitshuffle:
pip install jupyterlab_h5web[full]
jupyter lab build
This will install hdf5plugin in addition to the extension.
Update
In the case you want to update jupyterlab_h5web
after having already installed
it, do a clean reinstallation:
# Uninstall the old version
jupyter labextension uninstall jupyterlab-h5web
pip uninstall jupyterlab_h5web
# Install the new version
pip install jupyterlab_h5web
jupyter lab build
Otherwise, the labextension
may not be updated correctly.
Usage
This extension enables opening HDF5 files in a JupyterLab tab and exploring HDF5 files in Jupyter notebooks.
In JupyterLab
You can double-click on an HDF5 file or right-click Open with -> h5web to launch a tab.
This tab is composed of a sidebar, where you can explore the structure of the HDF5 file, and of a main area where the visualization of the selected entity takes place. This visualization is controlled by the upper-right button that can toggle between:
- Display: visualize datasets using
Line
,Heatmap
orMatrix
visualizations. - Inspect: show the metadata and attributes of any entity
In Jupyter notebooks
To open a HDF5 file with H5Web, use the H5Web
widget in a notebook cell:
from jupyterlab_h5web import H5Web
H5Web('<path to the HDF5 file>')
An example is provided in example.ipynb.
Supported file formats
jupyter-h5web detects HDF5 files based on their file extensions. The viewer works for the following extensions:
For other types of files, you can change the extension to one of the supported extensions or, if it is widespread, open an issue to discuss its support.
Changelog
See https://github.com/silx-kit/jupyterlab-h5web/releases.
Troubleshoot
Error on jupyter lab build
If jupyter lab build
fails, try to remove the minimize
step from the build
by running jupyter lab build --minimize=False
instead of jupyter lab build
.
This will fix Terser errors when minimizing three.js.
Check the server extension
If you are seeing the frontend extension but it is not working, check that
jupyterlab_h5web
is installed and enabled.
It should be listed when running:
jupyter serverextension list
If jupyterlab_h5web
does not appear or is disabled, try to enable it:
jupyter serverextension enable jupyterlab_h5web
Check the frontend extension
If jupyterlab_h5web
is installed and enabled but you are not seeing the
frontend, check the frontend is installed:
jupyter labextension list
If it is installed, try:
jupyter lab clean
jupyter lab build
Stale H5Web
In the case the displayed H5Web does not match the installed version, try to reinstall the package using the procedure described in Update.
If the above instructions did not solve your issue, you can open an issue on GitHub.
Uninstall
jupyter labextension uninstall jupyterlab-h5web
pip uninstall jupyterlab_h5web
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 jupyterlab_h5web-0.3.0.tar.gz
.
File metadata
- Download URL: jupyterlab_h5web-0.3.0.tar.gz
- Upload date:
- Size: 98.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6efcd543216e45e0ca773c798fe35e53e726fcb24bab3dc59659daa28d68ae31 |
|
MD5 | b6322e4d4fa521059ea9779c90106cc6 |
|
BLAKE2b-256 | 3afe072a13c546420014467d4947c189a169c51e93f106d094fece70d1a3296a |
File details
Details for the file jupyterlab_h5web-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: jupyterlab_h5web-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 636884b1fe6c2ed998f54af36530416381f16eff57687fd5e5d138fe75882221 |
|
MD5 | df5749842b8de9d9a1b6e447ccc649e5 |
|
BLAKE2b-256 | 69a7c39a08915a922d46e0ec717c50c31a89addb1cd31cf2eb18e247334defdb |