title: Can I print output to another cell in a jupyter notebook?
body: <p>Let's assume there is a jupyter notebook that has two cells. In the second cell, we generate some output, e.g. by running <code>print('foo')</code>. Is there a way to change that print command in such a way that the output will be displayed as output of the first cell?</p>
  
  <p>Why? In a typical data analysis workflow, I access several data sources somewhere in the notebook. It would be nice if I could extend my <code>access_data</code> method in such a way that all sources that I have used are listed in the first cell.</p>