##// 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 1 # -*- Mode: Shell-Script -*- Not really, but shows comments correctly
2 2 #***************************************************************************
3 3 #
4 4 # Configuration file for ipython -- ipythonrc format
5 5 #
6 6 # The format of this file is one of 'key value' lines.
7 7 # Lines containing only whitespace at the beginning and then a # are ignored
8 8 # as comments. But comments can NOT be put on lines with data.
9 9 #***************************************************************************
10 10
11 11 # If this file is found in the user's ~/.ipython directory as
12 12 # ipythonrc-physics, it can be loaded by calling passing the '-profile
13 13 # physics' (or '-p physics') option to IPython.
14 14
15 15 # This profile loads modules useful for doing interactive calculations with
16 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 19 # First load basic user configuration
20 20 include ipythonrc
21 21
22 22 # import ...
23 23 # Module with alternate input syntax for PhysicalQuantity objects.
24 24 import_mod IPython.Extensions.PhysicalQInput
25 25
26 26 # from ... import *
27 27 # math CANNOT be imported after PhysicalQInteractive. It will override the
28 28 # functions defined there.
29 29 import_all math IPython.Extensions.PhysicalQInteractive
30 30
31 31 # from ... import ...
32 32 import_some
33 33
34 34 # code
35 35 execute q = PhysicalQuantityInteractive
36 36 execute g = PhysicalQuantityInteractive('9.8 m/s**2')
37 37 ececute rad = pi/180.
38 38 execute print '*** q is an alias for PhysicalQuantityInteractive'
39 39 execute print '*** g = 9.8 m/s^2 has been defined'
40 40 execute print '*** rad = pi/180 has been defined'
41 41
42 42 # Files to execute
43 43 execfile
1 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