##// END OF EJS Templates
Merge pull request #923 from minrk/configmagic...
Merge pull request #923 from minrk/configmagic New %config magic to interactively manipulate all configurables. This allows users to type `%config Foo.bar = 5` to control any IPython configurable. The Magic class keeps a list of configurables which will be updated by the change, so any objects that should be accessible to this magic should be appended to `shell.configurables`. I started with everything I saw as configurable in InteractiveShell. ## Usage Use just `%config` to see what classes are available, and `%config Class` to get the trait info for that class. When setting values via` %config Class.trait = value` It is evaluated with user_ns in globals, so you can do arbitrary things like: ```python In [4]: default = 'png' In [5]: %config InlineBackendConfig.figure_format = raw_input('what figure format should we use? ') or default ``` ## Note This magic reveals just how much we *don't* use traits/config properly. Almost everything is attached to the InteractiveShell object, and has an effect exactly once during an `init_foo()` method, rather than allowing config propagation via `_trait_changed()` methods. For instance, IPCompleter has an `omit__names` attribute, but the configurable is `InteractiveShell.readline_omit__names`, which is clearly wrong. We've done a good job with config in *new* code, but I think existing code needs a pretty hefty pass to get configurables attached to the right objects, and getting logic like `%colors` into `shell._colors_changed`. Closes #903
Fernando Perez -
r5237:b7253627 merge
Show More
Name Size Modified Last Commit Author
IPython
docs
scripts
setupext
tools
.gitattributes Loading ...
.gitignore Loading ...
.mailmap Loading ...
COPYING.txt Loading ...
MANIFEST.in Loading ...
README.rst Loading ...
ipython.py Loading ...
setup.py Loading ...
setup2.py Loading ...
setup3.py Loading ...
setupbase.py Loading ...
setupegg.py Loading ...

IPython: Productive Interactive Computing

Overview

Welcome to IPython. Our full documentation, including PDF versions of our manual, is available on our website; if you downloaded a built source distribution the docs/html directory contains an HTML version of the manual. The docs/source directory contains the plaintext version of these manuals.

Dependencies and supported Python versions

For full details, see the installation section of the manual. The basic parts of IPython only need the Python standard library, but much of its more advanced functionality requires extra packages.

Officially, IPython requires Python version 2.6 or 2.7. A separate repository contains our Python 3 version, as explained in our wiki.

Instant running

You can run IPython from this directory without even installing it system-wide by typing at the terminal:

$ python ipython.py