##// END OF EJS Templates
coalesce stream output in the notebook...
coalesce stream output in the notebook This merges consecutive outputs on one stream into a single output. Essentially, it applies the same merging that we do visually to the content stored in the notebook document. This results in a massive performance improvement in load-time and storage size for notebooks that have many calls to `sys.stdout.flush()`.

File last commit:

r13347:54891794
r17305:bd91397c
Show More
tokenize2.py
9 lines | 160 B | text/x-python | PythonLexer
"""Load our patched versions of tokenize.
"""
import sys
if sys.version_info[0] >= 3:
from ._tokenize_py3 import *
else:
from ._tokenize_py2 import *