##// END OF EJS Templates
Merge pull request #2346 from xeor/master...
Merge pull request #2346 from xeor/master Extra xterm identification in set_term_title Many times, xterm represent itself as "xterm-256color" instead of "xterm-color". This makes set_term_title not work at all. This is a simple patch to add everything that started with "xterm" to the list of TERM environments that should use the xterm way of changing the title.

File last commit:

r2267:928c921b
r8361:e93fd050 merge
Show More
ipy_profile_numpy.py
24 lines | 524 B | text/x-python | PythonLexer
""" IPython 'numpy' profile, to preload NumPy.
This profile loads the math/cmath modules as well as all of numpy.
It exposes numpy via the 'np' shorthand as well for convenience.
"""
from IPython.core import ipapi
import ipy_defaults
def main():
ip = ipapi.get()
try:
ip.ex("import math,cmath")
ip.ex("import numpy")
ip.ex("import numpy as np")
ip.ex("from numpy import *")
except ImportError:
print "Unable to start NumPy profile, is numpy installed?"
main()