A Jupyter Notebook server extension that provides APIs for fetching hdf5 contents and data. Built on h5py.
Project description
jupyterlab-hdf5
Open and explore HDF5 files in JupyterLab. Can handle very large (TB) sized files. Now integrated with the standard filebrowser!
Currently in early release. Double clicking on an .hdf5
file in the file browser will open it in a special HDF browser. You can then browse through the groups and open the datasets in the .hdf5
file. All datasets will open read only.
For the moment, the browser context menu does not work with .hdf5
files/groups/datasets. Only double clicking is currently supported.
Designed from the ground up to be as efficient as possible. Data will only be fetched as needed to create the visible display. This allows the extension to work with very large files, potentially up to the TB range.
Installation
pip install jupyterlab_hdf
jupyter labextension install @jupyterlab/hdf5
This will install both the server extension and the labextension needed by this plugin.
You can also install the labextension via Jupyterlab's extension manager GUI. Keep in mind that if you use the GUI, you'll still need to install the jupyterlab_hdf
server extension via pip
.
Development
For a development install, clone the repository and then run the following in the repo dir:
pip install .
jlpm build:dev
To watch for/rebuild on changes to this extension's source code, run:
jlpm run build:watch
What's in this extension
This extension has two main parts: an hdf5 filebrowser plugin, and an hdf5 dataset file type plugin. It also has a plugin (in early development) that provides HDF5 support for the @jupyterlab/dataregistry
labextension.
HDF5 Filebrowser
Allows you to navigate an .hdf5
file's groups as though they were directories in a filesystem. Any .hdf5
file on a user's system can be opened by entering its path (relative to the Jupyterlab home directory) in the box at the top of the browser.
HDF5 dataset file type
When you open a dataset using the hdf5 filebrowser, a document will open that displays the contents of the dataset via a grid.
HDF5 DataRegistry support
The @jupyterlab/dataregistry
extension allows for exploration of data in a very generalized way. If you have @jupyterlab/dataregistry
installed, this plugin will supply HDF5 support for dataregistry
.
Status of the latest version
-
filebrowser
- features
- allows you to a double click on an
.hdf5
file in the main file browser and open it in the new hdf browser - the hdf browser allows you to view the contents as groups and datasets and double click to open them
- allows you to a double click on an
- Some minor UI issues remain (mostly with the breadcrumbs).
- The next goal is to get the browser context menus to work correctly with HDF5 types. This will likely require some changes to JupyterLab core, which are currently being investigated.
- features
-
dataset file type
- features
- data will load to the grid dynamically as needed
- the grid can accessed as slices via the "Slice" UI
- read only
- the next goal is to enable selection/copying of a dataset's elements
- features
-
@jupyterlab/dataregistry
support- features
- allows the opening of
.hdf5
files, groups, and datasets in thedataregistry
browser - offers functionality similar to that of the set of other plugins in this extension
- allows the opening of
- features
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_hdf-0.4.0.tar.gz
.
File metadata
- Download URL: jupyterlab_hdf-0.4.0.tar.gz
- Upload date:
- Size: 121.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1c026e7d7968d3208ea1dc5a8817e4314cb761d600b6c535dc0106cf667e55 |
|
MD5 | 7a13e5197a017e700b0c883bc0623667 |
|
BLAKE2b-256 | bb14269f809f4945c41039f4095fcc96885de6e2a4ee7757fa6c6d447076953e |
File details
Details for the file jupyterlab_hdf-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: jupyterlab_hdf-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3628d735e392ee0ff33dc53ec432e0ac100cce98ff519d7dcd88dca8536ef09c |
|
MD5 | edc065d391e1f3588fe517960bcff9fa |
|
BLAKE2b-256 | 7d60967c9651ae8612d5f3ebdd808820c2a7988f365b7530edeaa4a751cfd226 |