Put output in a new cell

24 views
Skip to first unread message

Yury Zhauniarovich

unread,
Dec 13, 2016, 12:48:13 AM12/13/16
to Project Jupyter
Hi all,

Is it possible to put the output in a new output cell? 

Here is the explanation why I need this. I have a loop that calculates some statistics for a group and produces a figure for it. Unfortunately, once I run this loop, in the output I see at first all the standard output with statistics for all groups and then separately graphs for all the groups. I would like to organize the output so that the statistics data comes right before the graph. Dear community, what can you recommend?

Thomas Kluyver

unread,
Dec 13, 2016, 6:37:05 AM12/13/16
to Project Jupyter
On 13 December 2016 at 05:48, Yury Zhauniarovich <y.zhaln...@gmail.com> wrote:
Here is the explanation why I need this. I have a loop that calculates some statistics for a group and produces a figure for it. Unfortunately, once I run this loop, in the output I see at first all the standard output with statistics for all groups and then separately graphs for all the groups. I would like to organize the output so that the statistics data comes right before the graph. Dear community, what can you recommend?

Are you using matplotlib, or a plotting library that builds on top of it? If so, try explicitly show()-ing and close()-ing the figures at the point where you want to display them. If you don't do this, then all unclosed figures are shown after any other output.

Reply all
Reply to author
Forward
0 new messages