##// END OF EJS Templates
run cells with `silent=True` in `%run nb.ipynb`...
run cells with `silent=True` in `%run nb.ipynb` - more consistent with running scripts - avoids a bunch of uncapturable `Out[n]: ` outputs when running a notebook.

File last commit:

r16114:15cc5a8e
r16554:5e782839
Show More
embed_no_division.py
6 lines | 291 B | text/x-python | PythonLexer
/ tools / tests / embed / embed_no_division.py
"""This tests that future compiler flags are passed to the embedded IPython."""
from IPython import embed
import __future__
embed(banner1='', header='check 1/2 == 0 in Python 2')
embed(banner1='', header='check 1/2 == 0.5 in Python 2',
compile_flags=__future__.division.compiler_flag)