~ellisonbg/ipython/trunk-dev

« back to all changes in this revision

Viewing changes to IPython/deathrow/ipy_profile_numpy.py

  • Committer: Brian Granger
  • Date: 2010-01-31 23:57:46 UTC
  • mfrom: (1109.1.113 ipython)
  • Revision ID: ellisonbg@gmail.com-20100131235746-rj81qa8klooepq2m
Merging from upstream trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
It exposes numpy via the 'np' shorthand as well for convenience.
6
6
"""
7
7
 
8
 
import IPython.ipapi
 
8
from IPython.core import ipapi
9
9
import ipy_defaults
10
10
 
11
11
def main():
12
 
    ip = IPython.ipapi.get()
 
12
    ip = ipapi.get()
13
13
 
14
14
    try:
15
15
        ip.ex("import math,cmath")