File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -264,15 +264,19 @@ def csv_data(
264264interactive_file = pn .bind (load_data , text_fname )
265265
266266interactive_column_output = pn .bind (column_output , interactive_file )
267- selector_output = pn .widgets .Select (name = "Output" , options = interactive_column_output )
267+ # hack to make the default selection faster
268+ interactive_output_ = pn .bind (lambda x : x [0 ], interactive_column_output )
269+ selector_output = pn .widgets .Select (
270+ name = "Output" , value = interactive_output_ , options = interactive_column_output
271+ )
268272interactive_output = pn .bind (filtered_output , interactive_file , selector_output )
269273
270274interactive_column_input = pn .bind (column_inputs , interactive_file , selector_output )
271275selector_inputs_sensitivity = pn .widgets .MultiSelect (
272276 name = "Inputs" , value = interactive_column_input , options = interactive_column_input
273277)
274278interactive_inputs = pn .bind (
275- filtered_output , interactive_file , selector_inputs_sensitivity
279+ filtered_inputs , interactive_file , selector_inputs_sensitivity
276280)
277281
278282interactive_sensitivity_indices = pn .bind (
You can’t perform that action at this time.
0 commit comments