hyrax.verbs.visualize_v2#
Attributes#
Classes#
Verb to create a hexbin visualization of a 2D latent space. |
Functions#
|
Bokeh hook: disable axis-only zoom and align tick marks inward. |
Module Contents#
- _disable_axis_zoom(plot, element)[source]#
Bokeh hook: disable axis-only zoom and align tick marks inward.
- class VisualizeV2(config)[source]#
Bases:
hyrax.verbs.verb_registry.VerbVerb to create a hexbin visualization of a 2D latent space.
Overall initialization for all verbs that saves the config
- run(**kwargs)[source]#
Generate an interactive hexbin visualization of a latent space projected to 2D.
Uses HoloViews HexTiles with datashader for adaptive hexbin aggregation, box/lasso selection, a metadata table, and tabbed detail plots.
- Parameters:
kwargs – Additional keyword arguments passed as HexTiles opts overrides.
- Returns:
This verb instance. Use it to call
restart_ui()orget_selected_df()after the UI has been displayed.- Return type:
- restart_ui(**kwargs)[source]#
Rebuild and re-display the Panel UI without reloading data.
Call this after a Jupyter websocket disconnect instead of re-running the cell. The expensive data-loading step is skipped — only the widgets are rebuilt.
- Parameters:
kwargs – Additional keyword arguments passed as HexTiles opts overrides.
- Returns:
This verb instance. Use it to call
restart_ui()orget_selected_df()after the UI has been displayed.- Return type:
- _load_data()[source]#
Load dataset and build the points DataFrame.
Guards with a
_data_loadedsentinel so the expensive steps only run once per verb instance. Safe to call multiple times.