In [3]:
import sys
sys.version


Out[3]:
'3.4.3 |Continuum Analytics, Inc.| (default, Mar  6 2015, 12:08:17) [MSC v.1600 32 bit (Intel)]'

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()


<matplotlib.figure.Figure at 0x6445eb0>
Out[4]:
[<matplotlib.lines.Line2D at 0x672d590>]

Errors are shown in informative ways:


In [5]:
%run non_existent_file


ERROR: File `'non_existent_file.py'` not found.

In [6]:
x = 1
y = 4
z = y/(1-x)


---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-6-dc39888fd1d2> in <module>()
      1 x = 1
      2 y = 4
----> 3 z = y/(1-x)

ZeroDivisionError: division by zero

In [7]:
ip = get_ipython()

In [8]:
%install_ext https://raw.github.com/anaderi/ipython-hierarchymagic/master/hierarchymagic.py


Installed hierarchymagic.py. To use it, type:
  %load_ext hierarchymagic

In [9]:
%load_ext hierarchymagic

In [10]:
%hierarchy get_ipython()


Auto-Complete Sadness (Issue #55)

Issue #55.

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]:
'****************************************************************************************3'

In [ ]:
1+1

In [ ]: