ViewerRegistry

class jdaviz.core.registries.ViewerRegistry[source] [edit on github]

Bases: jdaviz.core.registries.UniqueDictRegistry

Registry containing references to custom viewers.

Methods Summary

__call__([name, label])

This is provided so that registry instances can be used as decorators.

add(name, cls[, label])

Add an item to the registry.

Methods Documentation

__call__(name=None, label=None)[source] [edit on github]

This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function

add(name, cls, label=None)[source] [edit on github]

Add an item to the registry.

Parameters
namestr

The key referencing the associated class in the registry dictionary.

clstype

The class definition (not instance) associated with the name given in the first parameter.

labelstr, optional

The label displayed in the tooltip when hovering over the tray tab.