Skip to main content

A JupyterLab extension to explore and visualize HDF5 file contents.

Project description

jupyterlab-h5web

Github Actions Status PyPI version Binder

Demo

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 4

See the table below for earlier JupyterLab versions

Compatibility table

JupyterLab 2 JupyterLab 3 JupyterLab 4
Extension version range 0.0.1 - 0.3.0 1.0.0 - 8.0.0 10.0.0 - ...

Install

With pip

pip install jupyterlab_h5web

To enable support for additional filters such as blosc or bitshuffle:

pip install jupyterlab_h5web[full]

This will install hdf5plugin in addition to the extension.

With conda

conda install -c conda-forge jupyterlab-h5web

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 or Matrix 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>')

The cell height can be resized with the handle at the bottom-right.

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

If the following instructions do not solve your issue, you can open an issue on GitHub.

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 server extension list

If jupyterlab_h5web does not appear or is disabled, try to enable it:

jupyter server extension 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 --verbose

Uninstall

pip uninstall jupyterlab_h5web

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

jupyterlab_h5web-12.7.0.tar.gz (509.5 kB view details)

Uploaded Source

Built Distribution

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

jupyterlab_h5web-12.7.0-py3-none-any.whl (416.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_h5web-12.7.0.tar.gz.

File metadata

  • Download URL: jupyterlab_h5web-12.7.0.tar.gz
  • Upload date:
  • Size: 509.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jupyterlab_h5web-12.7.0.tar.gz
Algorithm Hash digest
SHA256 a8078b3b6bae8d50cc7ea1bc247ffc214c180fdc8820b9900c322f42a029ae2e
MD5 96ed6fb354fba893d18f327d50cf31b4
BLAKE2b-256 bdc2464d0cf9dc879dcb7e2a29cd50d8ee3a12780a9738ecce656f9946fc0e66

See more details on using hashes here.

File details

Details for the file jupyterlab_h5web-12.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_h5web-12.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58e586cbf7b2e12c2d0c944e1456d0cf4d33a810e85e328d1f730487f6134295
MD5 57682e8684bfad26af1aef4e7e09e5fb
BLAKE2b-256 cc906f4441ab43a66d63f9b2f38e13f51e5e02918228c954a8772c773c126971

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