##// END OF EJS Templates
Improvements to component.py....
Improvements to component.py. Components are now based fully on traitlets. The have a better querying interface and smart children, parent, root properties. Some testing has been added.

File last commit:

r2064:a2e46ebb
r2180:7d974efa
Show More
ipythonrc-physics
45 lines | 1.7 KiB | text/plain | TextLexer
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0 # -*- Mode: Shell-Script -*- Not really, but shows comments correctly
#***************************************************************************
#
# Configuration file for ipython -- ipythonrc format
#
# The format of this file is one of 'key value' lines.
# Lines containing only whitespace at the beginning and then a # are ignored
# as comments. But comments can NOT be put on lines with data.
#***************************************************************************
# If this file is found in the user's ~/.ipython directory as
# ipythonrc-physics, it can be loaded by calling passing the '-profile
# physics' (or '-p physics') option to IPython.
# This profile loads modules useful for doing interactive calculations with
# physical quantities (with units). It relies on modules from Konrad Hinsen's
vivainio
Kirill Smelkov patch 5/9: ScientificPython webpage has moved"
r431 # ScientificPython (http://dirac.cnrs-orleans.fr/ScientificPython/)
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0
# First load basic user configuration
include ipythonrc
# import ...
# Module with alternate input syntax for PhysicalQuantity objects.
Brian Granger
Renaming Extensions=>extensions in code and imports.
r2064 import_mod IPython.extensions.PhysicalQInput
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0
# from ... import *
# math CANNOT be imported after PhysicalQInteractive. It will override the
# functions defined there.
Brian Granger
Renaming Extensions=>extensions in code and imports.
r2064 import_all math IPython.extensions.PhysicalQInteractive
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0
# from ... import ...
import_some
# code
execute q = PhysicalQuantityInteractive
execute g = PhysicalQuantityInteractive('9.8 m/s**2')
ececute rad = pi/180.
execute print '*** q is an alias for PhysicalQuantityInteractive'
execute print '*** g = 9.8 m/s^2 has been defined'
execute print '*** rad = pi/180 has been defined'
Gael Varoquaux
Add the physics constants to the ipython physics user configuration.
r1601 execute import ipy_constants as C
execute print '*** C is the physical constants module'
fperez
Reorganized the directory for ipython/ to have its own dir, which is a bit...
r0
# Files to execute
execfile