##// END OF EJS Templates
Kirill Smelkov patch 5/9: ScientificPython webpage has moved"
vivainio -
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,43 +1,43 b''
1 # -*- Mode: Shell-Script -*- Not really, but shows comments correctly
1 # -*- Mode: Shell-Script -*- Not really, but shows comments correctly
2 #***************************************************************************
2 #***************************************************************************
3 #
3 #
4 # Configuration file for ipython -- ipythonrc format
4 # Configuration file for ipython -- ipythonrc format
5 #
5 #
6 # The format of this file is one of 'key value' lines.
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
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.
8 # as comments. But comments can NOT be put on lines with data.
9 #***************************************************************************
9 #***************************************************************************
10
10
11 # If this file is found in the user's ~/.ipython directory as
11 # If this file is found in the user's ~/.ipython directory as
12 # ipythonrc-physics, it can be loaded by calling passing the '-profile
12 # ipythonrc-physics, it can be loaded by calling passing the '-profile
13 # physics' (or '-p physics') option to IPython.
13 # physics' (or '-p physics') option to IPython.
14
14
15 # This profile loads modules useful for doing interactive calculations with
15 # This profile loads modules useful for doing interactive calculations with
16 # physical quantities (with units). It relies on modules from Konrad Hinsen's
16 # physical quantities (with units). It relies on modules from Konrad Hinsen's
17 # ScientificPython (http://starship.python.net/crew/hinsen/)
17 # ScientificPython (http://dirac.cnrs-orleans.fr/ScientificPython/)
18
18
19 # First load basic user configuration
19 # First load basic user configuration
20 include ipythonrc
20 include ipythonrc
21
21
22 # import ...
22 # import ...
23 # Module with alternate input syntax for PhysicalQuantity objects.
23 # Module with alternate input syntax for PhysicalQuantity objects.
24 import_mod IPython.Extensions.PhysicalQInput
24 import_mod IPython.Extensions.PhysicalQInput
25
25
26 # from ... import *
26 # from ... import *
27 # math CANNOT be imported after PhysicalQInteractive. It will override the
27 # math CANNOT be imported after PhysicalQInteractive. It will override the
28 # functions defined there.
28 # functions defined there.
29 import_all math IPython.Extensions.PhysicalQInteractive
29 import_all math IPython.Extensions.PhysicalQInteractive
30
30
31 # from ... import ...
31 # from ... import ...
32 import_some
32 import_some
33
33
34 # code
34 # code
35 execute q = PhysicalQuantityInteractive
35 execute q = PhysicalQuantityInteractive
36 execute g = PhysicalQuantityInteractive('9.8 m/s**2')
36 execute g = PhysicalQuantityInteractive('9.8 m/s**2')
37 ececute rad = pi/180.
37 ececute rad = pi/180.
38 execute print '*** q is an alias for PhysicalQuantityInteractive'
38 execute print '*** q is an alias for PhysicalQuantityInteractive'
39 execute print '*** g = 9.8 m/s^2 has been defined'
39 execute print '*** g = 9.8 m/s^2 has been defined'
40 execute print '*** rad = pi/180 has been defined'
40 execute print '*** rad = pi/180 has been defined'
41
41
42 # Files to execute
42 # Files to execute
43 execfile
43 execfile
1 NO CONTENT: modified file
NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now