trw.reporting.reporting_bokeh_samples

Module Contents

Classes

PanelDataSamplesTabular

Display tabular data

PanelDataSamplesScatter

Helper class to compose Bokeh UI elements into complex classes.

Functions

process_data_samples__tabular(options, name, data, data_types, type_categories, title, with_column_title_rotation=True)

Create a tabular panel of the data & types

scatter(all_data, groups, scatter_name, type_category)

group_coordinate(options, data, group, group_layout_y, group_layout_x)

Create a coordinate system for each group, independently of the other groups

sync_groups_coordinates(options, data_x, data_y, groups, groups_layout_y, groups_layout_x)

Up to that point, each group had sample coordinates calculated independently from

filter_large_data(options, data)

remove very large data, this will be communicated to the client and this is

render_data(options, data, data_types, type_categories, scatter_x, scatter_y, binning_x_axis, binning_selection_named, binning_selection_integral, color_by, color_scheme, icon, label_with, layout)

render_data_frame(fig_title, fig_name, options, data_source, data, groups, data_types, type_categories, scatter_x, scatter_y, color_by, color_scheme, icon, label_with, previous_figure)

make_custom_tooltip(options, data, data_types)

prepare_new_figure(options, data, data_types)

process_data_samples(options, name, role, data, types, type_categories)

process_data_tabular(options, name, role, data, types, type_categories)

class trw.reporting.reporting_bokeh_samples.PanelDataSamplesTabular(options, name, data, data_types, type_categories, title='Tabular')

Bases: trw.reporting.bokeh_ui.BokehUi

Display tabular data

Configuration options:

default/with_column_title_rotation: 1 or 0

update_data(self, options, name, data, data_types, type_categories)
trw.reporting.reporting_bokeh_samples.process_data_samples__tabular(options, name, data, data_types, type_categories, title, with_column_title_rotation=True)

Create a tabular panel of the data & types

Parameters
  • options

  • data – a dictionary of (key, values)

  • data_types – a dictionary of (key, type) indicating special type of key

  • title – the title of the panel to be displayed

Returns

a panel

trw.reporting.reporting_bokeh_samples.scatter(all_data, groups, scatter_name, type_category)
trw.reporting.reporting_bokeh_samples.group_coordinate(options, data, group, group_layout_y, group_layout_x)

Create a coordinate system for each group, independently of the other groups

trw.reporting.reporting_bokeh_samples.sync_groups_coordinates(options, data_x, data_y, groups, groups_layout_y, groups_layout_x)

Up to that point, each group had sample coordinates calculated independently from each other. Here consolidate all the subcoordinate system into a global one

trw.reporting.reporting_bokeh_samples.filter_large_data(options, data)

remove very large data, this will be communicated to the client and this is very slow!

trw.reporting.reporting_bokeh_samples.render_data(options, data, data_types, type_categories, scatter_x, scatter_y, binning_x_axis, binning_selection_named, binning_selection_integral, color_by, color_scheme, icon, label_with, layout)
trw.reporting.reporting_bokeh_samples.render_data_frame(fig_title, fig_name, options, data_source, data, groups, data_types, type_categories, scatter_x, scatter_y, color_by, color_scheme, icon, label_with, previous_figure)
trw.reporting.reporting_bokeh_samples.make_custom_tooltip(options, data, data_types)
trw.reporting.reporting_bokeh_samples.prepare_new_figure(options, data, data_types)
class trw.reporting.reporting_bokeh_samples.PanelDataSamplesScatter(options, name, data, data_types, type_categories)

Bases: trw.reporting.bokeh_ui.BokehUi

Helper class to compose Bokeh UI elements into complex classes.

Currently it is NOT possible to compose widgets (e.g., via sub-classing). Instead, use regular python with a single method get_ui that returns the Bokeh element to y_axis of the complex widget.

_update(self)
update_controls(self, options, name, data, data_types, type_categories)
update_data(self, options, name, data, data_types, type_categories)
trw.reporting.reporting_bokeh_samples.process_data_samples(options, name, role, data, types, type_categories)
trw.reporting.reporting_bokeh_samples.process_data_tabular(options, name, role, data, types, type_categories)