In [3]:
import sys
sys.version
Out[3]:
In [4]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
def plotnormal():
return plt.plot(np.random.randn(1000), np.random.randn(1000), 'o', alpha=0.3)
plotnormal()
Out[4]:
Errors are shown in informative ways:
In [5]:
%run non_existent_file
In [6]:
x = 1
y = 4
z = y/(1-x)
In [7]:
ip = get_ipython()
In [8]:
%install_ext https://raw.github.com/anaderi/ipython-hierarchymagic/master/hierarchymagic.py
In [9]:
%load_ext hierarchymagic
In [10]:
%hierarchy get_ipython()
Autocomplete doesn't play nicely with long arrays containing long strings.
In [10]:
longstring = '****************************************************************************************'
shortstring = '***'
shortarray = [shortstring + str(x) for x in range(12000)]
longarray = [longstring + str(x) for x in range(12000)]
In [ ]:
shortarray[3]
In [18]:
longarray[3]
Out[18]:
In [ ]:
1+1
In [ ]: