limit output - jcb91/IPython-notebook-extensions-wiki GitHub Wiki

This extension limits the number of characters a codecell can output as text. This also allows the interruption of endless loops.

Demo Video

You can set the number of characters using the ConfigManager:

from IPython.html.services.config import ConfigManager
ip = get_ipython()
cm = ConfigManager(parent=ip, profile_dir=ip.profile_dir.location)
cm.update('notebook', {"limit_output": 1000})

Installation

Follow the installation instructions appropriate to your IPython version as explained on the main wiki home pages: