Я запускаю некоторый код в IPyton ::
jrlab@jrlab-T150s:~$ ipython
In [1]: from IPython import get_ipython
...: ipython = get_ipython()
...:
...: code = """
...: import matplotlib.pyplot as plt
...:
...: print("bla")
...:
...: plt.figure()
...: """
...: res = ipython.run_cell(code)
...:
bla
Out[1]: <Figure size 640x480 with 0 Axes>
Как отключить печать Out [1], но не печать, которой управляет оператор print ?