em_database.widget#

An anywidget dataset browser for Jupyter: em_database.browse().

Renders every dataset grouped by technique, marks which are already downloaded (○ / ●), shows metadata on hover, and downloads on click. Each download runs on the shared background thread pool (so the kernel stays responsive) and reports progress through a toast card with a cancel button - the same idea as a desktop app’s download manager, driven here through pooch’s progress-bar hook.

anywidget is an optional dependency; browse() raises a helpful error if it is not installed. Importing this module never imports anywidget at module load, so import em_database stays cheap and dependency-light.

Functions

browse(**kwargs)

Return an interactive dataset browser widget for Jupyter.

card(dataset)

Return an interactive card widget for a single dataset (Jupyter).

settings_widget()

Return an interactive widget for editing em_database's settings (Jupyter).

Exceptions

DownloadCancelled

Raised inside pooch's stream when the user cancels a download.