_populate_viewer_items#

jdaviz.core.template_mixin._populate_viewer_items(plugin, supported_viewers)[source]#

Populate viewer_create_new_items and add viewer filters based on supported viewers.

This is a shared helper function used by both AddResults and importers.

Parameters:
pluginPlugin instance

The plugin that has the viewer component

supported_viewerslist of dict

List of supported viewer types from _get_supported_viewers()

Returns:
tuple

(viewer_create_new_items, viewer_filter_function)