glue-jupyterlab icon indicating copy to clipboard operation
glue-jupyterlab copied to clipboard

Viewer registry

Open astrofrog opened this issue 2 years ago • 0 comments

The glue-jupyter package includes a registry of available viewers - however this isn't currently properly populated so not quite ready for use. But it is just a heads-up that in the near future you should be able to use:

In [2]: from glue_jupyter.registries import viewer_registry

In [3]: viewer_registry.members
Out[3]: {'scatter': {'cls': glue_jupyter.bqplot.scatter.viewer.BqplotScatterView}, ...}

to find out what viewers are available, including viewers defined in other plugin packages (e.g. glue-wwt), so it will be possible to use this without hard-coding the list of viewers. I will update this issue once the registry is usable.

astrofrog avatar Aug 17 '23 13:08 astrofrog