These are chat archives for ipython/ipython
TerminalInteractiveShell.display_page = Trueto make pager calls regular display calls, which go in the cell output area.
Quick question about printing things in the Jupyter notebook. I want to have a progress bar during a computation. This runs by dumping things to
sys.stdout in a separate thread. It looks like the notebook suppresses
sys.stdout during execution of an individual cell. No worries, I'll just include an explicit call to
flush. Now I get this sometimes:
Exception in thread Thread-17: Traceback (most recent call last): File "/home/mrocklin/Software/anaconda/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/home/mrocklin/Software/anaconda/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/home/mrocklin/workspace/dask/dask/diagnostics/progress.py", line 67, in _timer_func self._update_bar() File "/home/mrocklin/workspace/dask/dask/diagnostics/progress.py", line 77, in _update_bar sys.stdout.write(msg) File "/home/mrocklin/Software/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/iostream.py", line 216, in write self._buffer.write(string) ValueError: I/O operation on closed file
Is there a better way to accomplish what I want?