Display multiple plots in one cell #2197
-
|
Hi, is there any way to display multiple plots in one cell? Say I have a clustering procedure in which, depending on the data, I can obtain 2-20 clusters and want to visualize all of them separately. In jupyter notebook, I would use something like this for cluster in clusters
@info cluster
plot(cluster) |> display
end;And it would give me the correct amount of plots each time. In jupyter, I assume it is best to create a separate cell for each cluster, which is really inconvenient because (i) there is a variable number of clusters and (ii) the amount of cells would get quickly out of hand. What is the recommended way to deal with this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Using subplotting is not an option here, because I want to also print out some statistics with PrettyTables.jl to stdout |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried returning a vector of plots? [plot(cluster) for cluster in clusters](so don't end this with a semicolon |
Beta Was this translation helpful? Give feedback.

Have you tried returning a vector of plots?
(so don't end this with a semicolon
;)