|
19 | 19 | import dash_bootstrap_components as dbc |
20 | 20 | import plotly.graph_objects as go |
21 | 21 | from dash import Input, Output, State, callback_context, dcc, html, no_update |
22 | | -from dash_extensions.enrich import ( |
23 | | - DashProxy, |
24 | | - ServersideOutput, |
25 | | - ServersideOutputTransform, |
26 | | -) |
| 22 | +from dash_extensions.enrich import DashProxy, Serverside, ServersideOutputTransform |
27 | 23 | from trace_updater import TraceUpdater |
28 | 24 | from utils.callback_helpers import get_selector_states, multiple_folder_file_selector |
29 | 25 | from utils.graph_construction import visualize_multiple_files |
|
33 | 29 | # --------------------------------------Globals --------------------------------------- |
34 | 30 | app = DashProxy( |
35 | 31 | __name__, |
36 | | - suppress_callback_exceptions=True, |
| 32 | + suppress_callback_exceptions=False, |
37 | 33 | external_stylesheets=[dbc.themes.LUX], |
38 | 34 | transforms=[ServersideOutputTransform()], |
39 | 35 | ) |
@@ -114,7 +110,7 @@ def serve_layout() -> dbc.Container: |
114 | 110 | [ |
115 | 111 | Output("coarse-graph", "figure"), |
116 | 112 | Output("plotly-resampler-graph", "figure"), |
117 | | - ServersideOutput("store", "data"), |
| 113 | + Output("store", "data"), |
118 | 114 | ], |
119 | 115 | [Input("plot-button", "n_clicks"), *get_selector_states(len(name_folder_list))], |
120 | 116 | prevent_initial_call=True, |
@@ -155,7 +151,7 @@ def construct_plot_graph(n_clicks, *folder_list): |
155 | 151 | ) |
156 | 152 | ) |
157 | 153 |
|
158 | | - return coarse_fig, dynamic_fig, dynamic_fig |
| 154 | + return coarse_fig, dynamic_fig, Serverside(dynamic_fig) |
159 | 155 | else: |
160 | 156 | return no_update |
161 | 157 |
|
@@ -185,4 +181,4 @@ def update_dynamic_fig(coarse_grained_relayout, fine_grained_relayout, fr_fig): |
185 | 181 |
|
186 | 182 | # --------------------------------- Running the app --------------------------------- |
187 | 183 | if __name__ == "__main__": |
188 | | - app.run_server(debug=True, port=9023) |
| 184 | + app.run_server(debug=False, port=9023) |
0 commit comments