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 3

For JupyterLab 2, use the 0.x versions of the extension.

Install

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.

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

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:

  • "Classic" HDF5: .h5, .hdf5
  • NeXus: .nexus, .nx, .nxs
  • CXI: .cxi

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

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-2.0.0.tar.gz (500.4 kB view details)

Uploaded Source

Built Distribution

jupyterlab_h5web-2.0.0-py3-none-any.whl (717.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyterlab_h5web-2.0.0.tar.gz
  • Upload date:
  • Size: 500.4 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

Hashes for jupyterlab_h5web-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1ee55f8585df17d6796c8c50cbc87df12aba919cfb1abb16273b482269fffb7b
MD5 8b709ab241293837139192a9d2384580
BLAKE2b-256 5f92ceb7674260337434cdbe702a36e37a1fed548d8149e2bd6fb7052b70eb03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyterlab_h5web-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 717.2 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

Hashes for jupyterlab_h5web-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b41f89c9e53f062e151974f5a049121fc0273cba3d8b0333740d7e62cd601e5
MD5 bc78e01e216f7e9aa4e38874db68d3e3
BLAKE2b-256 60852d933aeb1b56516c0020a1b98110eceaf6a8eafee5ca5e0c6d03354c1c28

See more details on using hashes here.

Supported by

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