mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-11 11:19:52 +08:00
This extension limits the number of characters a codecell can output as text. This also allows to interrupt endless loops.
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})
or by using the nbextensions config extension.
