##// END OF EJS Templates
IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now...
IPython/Extensions/ipipe.py: xrepr(), xiter() and xattrs() are now generic functions (using Philip J. Eby's simplegeneric package). This makes it possible to customize the display of third-party classes without having to monkeypatch them. xiter() no longer supports a mode argument and the XMode class has been removed. The same functionality can be implemented via IterAttributeDescriptor and IterMethodDescriptor. One consequence of the switch to generic functions is that xrepr() and xattrs() implementation must define the default value for the mode argument themselves and xattrs() implementations must return real descriptors. IPython/external: This new subpackage will contain all third-party packages that are bundled with IPython. (The first one is simplegeneric). IPython/Extensions/ipipe.py (ifile/ils): Readd output of the parent directory which as been dropped in r1703. IPython/Extensions/ipipe.py (iless): Fixed. IPython/Extensions/ibrowse: Fixed sorting under Python 2.3. More docstrings. Moved xrepr(), xiter() and xattrs() documentation into the docstring of the default implementation.

File last commit:

r0:6f629fcc
r415:4a5dcb15
Show More
ipythonrc-math
36 lines | 1.3 KiB | text/plain | TextLexer
# -*- 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.
#***************************************************************************
# This is an example of a 'profile' file which includes a base file and adds
# some customizaton for a particular purpose.
# If this file is found in the user's ~/.ipython directory as ipythonrc-math,
# it can be loaded by calling passing the '-profile math' (or '-p math')
# option to IPython.
# This example is a light customization to have ipython have basic math functions
# readily available, effectively making the python prompt a very capable scientific
# calculator
# include base config and only add some extras
include ipythonrc
# load the complex math functions but keep them in a separate namespace
import_mod cmath
# from ... import *
# load the real math functions in the global namespace for convenience
import_all math
# from ... import ...
import_some
# code to execute
execute print "*** math functions available globally, cmath as a module"