Application¶
-
class
glue.core.application_base.Application(data_collection=None, session=None)[source]¶ Bases:
glue.core.hub.HubListenerAttributes Summary
data_collectionsessionsettingsIterate over settings viewersReturn a tuple of tuples of viewers currently open Methods Summary
add_datasets(data_collection, datasets)Utility method to interactively add datasets to a add_widget(widget[, label, tab])close_tab()do(command)get_setting(key)Fetch the value of an application setting load_data(*args, **kwargs)new_data_viewer(viewer_class[, data])Create a new data viewer, add it to the UI, new_tab()redo()report_error(message, detail)Report an error message to the user. restore_session(path)Reload a previously-saved session save_session(*args, **kwargs)Save the data collection and hub to file. set_setting(key, value)Set the value of an application setting undo()Attributes Documentation
-
data_collection¶
-
session¶
-
settings¶ Iterate over settings
-
viewers¶ Return a tuple of tuples of viewers currently open The i’th tuple stores the viewers in the i’th close_tab
Methods Documentation
-
classmethod
add_datasets(data_collection, datasets)[source]¶ Utility method to interactively add datasets to a data_collection
Parameters: data_collection :
DataCollectiondatasets :
Dataor list of DataOne or more
DatainstancesAdds datasets to the collection
-
new_data_viewer(viewer_class, data=None)[source]¶ Create a new data viewer, add it to the UI, and populate with data
-
report_error(message, detail)[source]¶ Report an error message to the user. Must be implemented in a subclass
Parameters: message : str
The message to display
detail : str
Longer context about the error
-
static
restore_session(path)[source]¶ Reload a previously-saved session
Parameters: path : str
Path to the file to load
Returns: app :
ApplicationThe loaded application
-
save_session(*args, **kwargs)[source]¶ Save the data collection and hub to file.
Can be restored via restore_session
Note: Saving of client is not currently supported. Thus, restoring this session will lose all current viz windows
-