from IPython.display import display print('hi') display('hi') 1 %matplotlib inline import matplotlib.pyplot as plt plt.plot([1,3,2]) %%javascript console.log("I ran!"); %%html bold %%latex $$ a = 5 $$ raw_input("prompt > ") %%writefile tst.py def foo(): pass %load tst.py plt? # press shift-tab after parentheses int( # press tab after f f import sys, time from IPython.display import clear_output for i in range(10): clear_output() time.sleep(0.25) print(i) sys.stdout.flush() time.sleep(0.25) for i in range(10): clear_output(wait=True) time.sleep(0.25) print(i) sys.stdout.flush()