11-23-2021 09:30 AM
I have a loop that outputs a dataframe for values in a list; basically a loop.
I can create a dashboard if there is only one df but in the loop, I'm only able to see the charts in the notebook if I switch the view to charts not in the dashboard. In the dashboard, it only shows the first chart.
Is it possible to show all the charts created in a loop in the dashboard or is it limited to 1?
11-23-2021 10:04 AM
11-23-2021 09:50 AM
Yes, you can show all charts or only a few charts in the dashboards as per your requirement.
11-23-2021 10:04 AM
11-23-2021 11:19 AM
could you please show me how?
I can only see the first plot in the dashboard. Note that I am NOT talking about showing the output of multiple cmds but multiple outputs of ONE cmd in a loop.
In the following code snippet, for each idx, I have one test_df for which I can see the result in the notebook but not when I create New Dashboard as you mentioned. In the New dashboard only the first plot is shown.
for idx in range(3):
test_df = drift_plot_2(grouped_features[idx], perc=True)
display(test_df)
Dashboard view
Notebook view
11-24-2021 04:23 AM
If you want to be able to easily run and kill multiple process with
ctrl-c
, this is my favorite method: spawn multiple background processes in a
(…)
subshell, and trap
SIGINT
to execute
kill 0
, which will kill everything spawned in the subshell group:
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now