fedn.network.dashboard package
Submodules
fedn.network.dashboard.plots module
- class fedn.network.dashboard.plots.Plot(statestore)[source]
Bases:
object
- make_netgraph_plot(df, df_nodes)[source]
Create FEDn network visualization.
- Parameters:
df (pandas.Dataframe) – pandas dataframe with defined edges
:param df_nodes:pandas dataframe with defined nodes :type df_nodes: pandas.Dataframe :return: Bokeh plot with the graph :rtype: bokeh.plotting.figure.Figure
fedn.network.dashboard.restservice module
- class fedn.network.dashboard.restservice.ReducerRestService(config, control, statestore, certificate_manager)[source]
Bases:
object
- authorize(r, secret)[source]
Authorize client token
- Parameters:
r ([type]) – Request
token (string) – Token to verify against
- check_compute_package()[source]
Check if the compute package has been configured, if remote compute context is set to False, True will be returned
- Returns:
True if configured
- Return type:
- check_configured()[source]
Check if compute package has been configured and that and that the state of the ReducerControl is not in setup otherwise render setup template. Check if initial model has been configured, otherwise render setup_model template. :return: Rendered html template or None
- check_configured_response()[source]
Check if everything has been configured for client to connect, return response if not.
- Returns:
Reponse with message if not configured, else None
- Return type:
json