Viewer

class glue.viewers.common.viewer.Viewer(session, state=None)[source]

Bases: glue.viewers.common.viewer.BaseViewer

A viewer class that uses a state class to represent the overall viewer state, and uses layer artists and state classes to handle each dataset and subset in the data viewer.

Attributes Summary

allow_duplicate_data

allow_duplicate_subset

large_data_size

layers

Return a tuple of layers in this viewer.

Methods Summary

add_data(self, data)

add_subset(self, subset)

cleanup(self)

export_as_script(self, filename)

get_data_layer_artist(self[, layer, layer_state])

get_layer_artist(self, cls[, layer, layer_state])

get_subset_layer_artist(self[, layer, …])

options_widget(self)

register_to_hub(self, hub)

remove_data(self, data)

remove_layer(self, layer)

remove_subset(self, subset)

warn(self, message, \*args, \*\*kwargs)

Attributes Documentation

allow_duplicate_data = False
allow_duplicate_subset = False
large_data_size = 0
layers

Return a tuple of layers in this viewer.

A layer is a visual representation of a dataset or subset within the viewer

Methods Documentation

add_data(self, data)[source]
add_subset(self, subset)[source]
cleanup(self)[source]
export_as_script(self, filename)[source]
get_data_layer_artist(self, layer=None, layer_state=None)[source]
get_layer_artist(self, cls, layer=None, layer_state=None)[source]
get_subset_layer_artist(self, layer=None, layer_state=None)[source]
options_widget(self)[source]
register_to_hub(self, hub)[source]
remove_data(self, data)[source]
remove_layer(self, layer)[source]
remove_subset(self, subset)[source]
warn(self, message, *args, **kwargs)[source]