editor_function module¶
bokeh_editor.py
EDITOR TOOL
requires bokeh 0.12.13+ - uses bokeh server
-
editor_function.
alpha_list
()[source]¶ provides a list of string decimals for editor grid_bg tab alpha selectors
-
editor_function.
color_list
()[source]¶ provides a list of string color names for editor grid_bg tab color selectors
-
editor_function.
editor
(doc, poly_dim=15, ema_len=25, savgol_window=35, savgol_fit=1, animate_speed=350, plot_width=1100, plot_height=500, strip_eg_height=50, start_dot_size=4.75, max_dot_size=25, start_marker_alpha=0.65, marker_edge_color=None, marker_edge_width=0.0)[source]¶ create the editor tool
use the following code to run within the notebook:
import editor_function as ef from functools import partial from bokeh.io import show, output_notebook from bokeh.application.handlers import FunctionHandler from bokeh.application import Application output_notebook() handler = FunctionHandler(partial(ef.editor, # optional kwargs, )) app = Application(handler) show(app)
- inputs
- doc (variable)
a variable representing the bokeh document, do not modify
- poly_dim (integer)
the order of the polynomial fit line
- ema_len (integer)
the smoothing length to use when constructing the exponential moving average line
- savgol_window (positive odd integer)
Savitzky-Golay filter window length
- savgol_fit (integer)
The order of the polynomial used to fit the samples. This value must be less than the savgol_window value.
- animate_speed (integer)
Number of milliseconds between each animated month display
- plot_width (integer)
width of main and density charts in pixels
- plot_height (integer)
height of main chart in pixels
- strip_eg_height (integer)
height alloted for each employee group when constructing the density chart
- start_dot_size (float)
initial scatter marker size for main chart
- max_dot_size (integer)
maximum scatter marker size for the main chart display, set to size sliders
- start_marker_alpha (float)
initial scatter marker alpha (transparency) for main chart display
- marker_edge_color (color value string or None)
color of scatter marker edge color for main chart when marker edge width value is greater than zero
- marker_edge_width (float)
width of scatter marker edge width when marker_edge_color is not None
-
editor_function.
line_widths
()[source]¶ provides a list of string decimals for editor grid_bg tab edit line width selector
-
editor_function.
make_dataset
(proposal_name='', df_order=None, conditions=[], ds=None, ds_stand=None)[source]¶
-
editor_function.
use_first_proposal_found
(proposal_name)[source]¶ find and return the first list order found in ‘dill/proposal_names.pkl’. This function is used when another proposal name is designated by another section of the program but does not exist.
- inputs
- proposal_name (string)
the name of the proposal which was not found