โ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:
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group