~ellisonbg/ipython/bugfixes0411409

« back to all changes in this revision

Viewing changes to IPython/UserConfig/ipythonrc-numeric

  • Committer: ville
  • Date: 2008-02-16 09:50:47 UTC
  • mto: (0.12.1 ipython_main)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: ville@ville-pc-20080216095047-500x6dluki1iz40o
initialization (no svn history)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: Shell-Script -*-  Not really, but shows comments correctly
 
2
#***************************************************************************
 
3
#
 
4
# Configuration file for ipython -- ipythonrc format
 
5
#
 
6
# The format of this file is one of 'key value' lines.
 
7
# Lines containing only whitespace at the beginning and then a # are ignored
 
8
# as comments. But comments can NOT be put on lines with data.
 
9
#***************************************************************************
 
10
 
 
11
# This is an example of a 'profile' file which includes a base file and adds
 
12
# some customizaton for a particular purpose.
 
13
 
 
14
# If this file is found in the user's ~/.ipython directory as
 
15
# ipythonrc-numeric, it can be loaded by calling passing the '-profile
 
16
# numeric' (or '-p numeric') option to IPython.
 
17
 
 
18
# A simple alias numpy -> 'ipython -p numeric' makes life very convenient.
 
19
 
 
20
# This example is meant to load several modules to turn IPython into a very
 
21
# capable environment for high-end numerical work, similar to IDL or MatLab
 
22
# but with the beauty and flexibility of the Python language.
 
23
 
 
24
# Load the user's basic configuration
 
25
include ipythonrc
 
26
 
 
27
# import ...
 
28
 
 
29
# Load Numeric by itself so that 'help Numeric' works
 
30
import_mod Numeric
 
31
 
 
32
# from ... import *
 
33
# GnuplotRuntime loads Gnuplot and adds enhancements for use in IPython
 
34
import_all Numeric IPython.numutils IPython.GnuplotInteractive
 
35
 
 
36
# a simple line at zero, often useful for an x-axis
 
37
execute xaxis=gpfunc('0',title='',with='lines lt -1')
 
38
 
 
39
# Below are optional things off by default. Uncomment them if desired.
 
40
 
 
41
# MA (MaskedArray) modifies the Numeric printing mechanism so that huge arrays
 
42
# are only summarized and not printed (which may freeze the machine for a
 
43
# _long_ time).
 
44
 
 
45
#import_mod MA
 
46
 
 
47
 
 
48
# gracePlot is a Python interface to the plotting package Grace.
 
49
# For more details go to: http://www.idyll.org/~n8gray/code/index.html
 
50
# Uncomment lines below if you have grace and its python support code
 
51
 
 
52
#import_mod gracePlot 
 
53
#execute grace = gracePlot.gracePlot  # alias to make gracePlot instances
 
54
#execute print '*** grace is an alias for gracePlot.gracePlot'
 
55
 
 
56
# Files to execute
 
57
execfile