datasetgen.ui.dash
¶
Module Contents¶
-
datasetgen.ui.dash.
_create_layout
(app, dest_folder: Path, function_UIs: dict)[source]¶ Prepares the UI layout.
- Parameters
app (dash.Dash) – the current Dash application
dest_folder (PurePath) – the destination folder for the datasets
function_UIs (dict) – dataset generator UIs
- Returns
the updated Dash application
- Return type
dash.Dash
-
datasetgen.ui.dash.
_prepare_callbacks
(app, generator, dest_folder, function_UIs: dict)[source]¶ Function to prepare the UI callbacks.
In this function are called also all the personalized UI callbacks present in the function generator UIs.
- Parameters
app (dash.Dash) – the current Dash application
generator (Generator) – the generator object
dest_folder (PurePath) – the destination folder for the datasets
function_UIs (dict) – the dataset generator UIs
- Returns
the Dash app with the updated callbacks
- Return type
dash.Dash
-
datasetgen.ui.dash.
start_app
(debug: bool = True, dest_folder: Path = Path(__file__).parent)[source]¶ Start the generator UI app.
- Parameters
debug (bool, optional) – if start in debug mode or not, defaults to True
dest_folder (PurePath, optional) – the destination folder for the dataset generator, defaults to Path(__file__).parent