##// END OF EJS Templates
Merge branch 'docs', fixes to docs and a few small things I bumped into....
Fernando Perez -
r4255:10086a90 merge
parent child Browse files
Show More
@@ -48,9 +48,9 b' from IPython.utils.text import indent, wrap_paragraphs, dedent'
48 48 option_description = """
49 49 IPython command-line arguments are passed as '--<flag>', or '--<name>=<value>'.
50 50
51 Arguments that take values are actually aliases to full Configurables, whose
52 aliases are listed on the help line. For more information on full
53 configurables, see '--help-all'.
51 Arguments that take values are actually convenience aliases to full
52 Configurables, whose aliases are listed on the help line. For more information
53 on full configurables, see '--help-all'.
54 54 """.strip() # trim newlines of front and back
55 55
56 56 keyvalue_description = """
@@ -250,8 +250,8 b' class Application(SingletonConfigurable):'
250 250 for p in wrap_paragraphs(self.subcommand_description):
251 251 lines.append(p)
252 252 lines.append('')
253 for subc, (cls,help) in self.subcommands.iteritems():
254 lines.append("%s : %s"%(subc, cls))
253 for subc, (cls, help) in self.subcommands.iteritems():
254 lines.append(subc)
255 255 if help:
256 256 lines.append(indent(dedent(help.strip())))
257 257 lines.append('')
@@ -13,40 +13,49 b' import sys'
13 13 from IPython.core import release
14 14
15 15 cl_usage = """\
16 ipython [options] [files]
16 =========
17 IPython
18 =========
17 19
18 IPython: an enhanced interactive Python shell.
20 Tools for Interactive Computing in Python
21 =========================================
19 22
20 23 A Python shell with automatic history (input and output), dynamic object
21 24 introspection, easier configuration, command completion, access to the
22 25 system shell and more. IPython can also be embedded in running programs.
23 26
27
28 Usage
29 -----
30
31 ipython [subcommand] [options] [files]
32
24 33 If invoked with no options, it executes all the files listed in sequence
25 and exits, use --i to enter interactive mode after running the files. Files
34 and exits, use -i to enter interactive mode after running the files. Files
26 35 ending in .py will be treated as normal Python, but files ending in .ipy
27 36 can contain special IPython syntax (magic commands, shell expansions, etc.)
28 37
29 38 Almost all configuration in IPython is available via the command-line. Do
30 39 `ipython --help-all` to see all available options. For persistent
31 configuration, Look into your ipython_config.py configuration file for
40 configuration, look into your `ipython_config.py` configuration file for
32 41 details.
33 42
34 This file is typically installed in the IPYTHON_DIR directory, and there
43 This file is typically installed in the `IPYTHON_DIR` directory, and there
35 44 is a separate configuration directory for each profile. The default profile
36 directory will be located in $IPYTHON_DIR/profile_default. For Linux
37 users, IPYTHON_DIR will be $HOME/.config/ipython, and for other users it will be
38 $HOME/.ipython. For Windows users, $HOME resolves to C:\\Documents and
39 Settings\\YourUserName in most instances.
45 directory will be located in $IPYTHON_DIR/profile_default. For Linux users,
46 IPYTHON_DIR defaults to `$HOME/.config/ipython`, and for other Unix systems
47 to `$HOME/.ipython`. For Windows users, $HOME resolves to C:\\Documents
48 and Settings\\YourUserName in most instances.
40 49
41 To initialize a profile with the default configuration file, do:
50 To initialize a profile with the default configuration file, do::
42 51
43 52 $> ipython profile create
44 53
45 and start editing IPYTHON_DIR/profile_default/ipython_config.py
54 and start editing `IPYTHON_DIR/profile_default/ipython_config.py`
46 55
47 In IPython's documentation, we will refer to this directory as IPYTHON_DIR,
48 you can change its default location by setting any path you want in this
49 environment variable.
56 In IPython's documentation, we will refer to this directory as
57 `IPYTHON_DIR`, you can change its default location by creating an
58 environment variable with this name and setting it to the desired path.
50 59
51 60 For more information, see the manual available in HTML and PDF in your
52 61 installation, or online at http://ipython.org/documentation.html.
@@ -1,4 +1,3 b''
1 #!/usr/bin/env python
2 1 # encoding: utf-8
3 2 """
4 3 An embedded IPython shell.
@@ -158,8 +158,8 b" flags['quick']=("
158 158
159 159 flags['i'] = (
160 160 {'TerminalIPythonApp' : {'force_interact' : True}},
161 """also works as '-i'
162 If running code from the command line, become interactive afterwards."""
161 """If running code from the command line, become interactive afterwards.
162 Note: can also be given simply as '-i.'"""
163 163 )
164 164 flags['pylab'] = (
165 165 {'TerminalIPythonApp' : {'pylab' : 'auto'}},
@@ -180,7 +180,6 b' aliases.update(dict('
180 180 # Main classes and functions
181 181 #-----------------------------------------------------------------------------
182 182
183
184 183 class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):
185 184 name = u'ipython'
186 185 description = usage.cl_usage
@@ -190,7 +189,8 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
190 189
191 190 flags = Dict(flags)
192 191 aliases = Dict(aliases)
193 classes = [InteractiveShellApp, TerminalInteractiveShell, ProfileDir, PlainTextFormatter]
192 classes = [InteractiveShellApp, TerminalInteractiveShell, ProfileDir,
193 PlainTextFormatter]
194 194 subcommands = Dict(dict(
195 195 qtconsole=('IPython.frontend.qt.console.qtconsoleapp.IPythonQtConsoleApp',
196 196 """Launch the IPython Qt Console."""
@@ -247,17 +247,14 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
247 247
248 248 def parse_command_line(self, argv=None):
249 249 """override to allow old '-pylab' flag with deprecation warning"""
250
250 251 argv = sys.argv[1:] if argv is None else argv
251
252 try:
253 idx = argv.index('-pylab')
254 except ValueError:
255 # `-pylab` not given, proceed as normal
256 pass
257 else:
252
253 if '-pylab' in argv:
258 254 # deprecated `-pylab` given,
259 255 # warn and transform into current syntax
260 argv = list(argv) # copy, don't clobber
256 argv = argv[:] # copy, don't clobber
257 idx = argv.index('-pylab')
261 258 warn.warn("`-pylab` flag has been deprecated.\n"
262 259 " Use `--pylab` instead, or `--pylab=foo` to specify a backend.")
263 260 sub = '--pylab'
@@ -375,4 +372,3 b' def launch_new_instance():'
375 372
376 373 if __name__ == '__main__':
377 374 launch_new_instance()
378
@@ -403,10 +403,6 b' interact with IPython at the end of the script (instead of exiting).'
403 403
404 404 The already implemented runners are listed below; adding one for a new program
405 405 is a trivial task, see the source for examples.
406
407 WARNING: the SAGE runner only works if you manually configure your SAGE copy
408 to use 'colors NoColor' in the ipythonrc config file, since currently the
409 prompt matching regexp does not identify color sequences.
410 406 """
411 407
412 408 def main():
@@ -101,7 +101,8 b" def print_figure(fig, fmt='png'):"
101 101 try:
102 102 string_io = StringIO()
103 103 # use 72 dpi to match QTConsole's dpi
104 fig.canvas.print_figure(string_io, format=fmt, dpi=72)
104 fig.canvas.print_figure(string_io, format=fmt, dpi=72,
105 bbox_inches='tight')
105 106 data = string_io.getvalue()
106 107 finally:
107 108 fig.set_facecolor(fc)
@@ -1,9 +1,6 b''
1 1 #!/usr/bin/env python
2 2 """Terminal-based IPython entry point.
3
4 Note: this is identical to IPython/frontend/terminal/scripts/ipython for now.
5 Once 0.11 is closer to release, we will likely need to reorganize the script
6 entry points."""
3 """
7 4
8 5 from IPython.frontend.terminal.ipapp import launch_new_instance
9 6
1 NO CONTENT: file renamed from docs/man/ipython-wx.1 to docs/attic/ipython-wx.1
1 NO CONTENT: file renamed from docs/man/ipythonx.1 to docs/attic/ipythonx.1
@@ -1,4 +1,4 b''
1 .TH IPCLUSTER 1 "October 28, 2008" "" ""
1 .TH IPCLUSTER 1 "July 15, 2011" "" ""
2 2 .SH NAME
3 3 \fBipcluster \- IPython parallel computing cluster control tool
4 4 .SH SYNOPSIS
@@ -12,28 +12,26 b" ipcluster is a control tool for IPython's parallel computing functions."
12 12
13 13 IPython cluster startup. This starts a controller and engines using various
14 14 approaches. Use the IPYTHON_DIR environment variable to change your IPython
15 directory from the default of .ipython or _ipython. The log and security
15 directory from the default of ~/.ipython or ~/.config/ipython. The log and security
16 16 subdirectories of your IPython directory will be used by this script for log
17 17 files and security files.
18 18 .SH POSITIONAL ARGUMENTS
19 19
20 The first positional argument should be one of: {mpiexec, local, mpirun, pbs,
21 ssh}, which are the available cluster types.
20 The first positional argument should be one of: {start, stop, engines},
21 which are the available subcommands.
22 22
23 For detailed help on each, type "ipcluster TYPE --help". Briefly:
23 For detailed help on each, type "ipcluster CMD --help". Briefly:
24 24
25 local run a local cluster
26 mpirun run a cluster using mpirun (mpiexec also works)
27 mpiexec run a cluster using mpiexec (mpirun also works)
28 pbs run a pbs cluster
29 ssh run a cluster using ssh, should have ssh-keys setup
25 start start an IPython cluster
26 stop stop a running IPython cluster
27 engines add a number of engines to a running cluster
30 28 .SH OPTIONS
31 29 .TP
32 30 .B
33 31 \-h, \-\-help
34 32 show help message and exit
35 33 .SH EXAMPLE
36 ipcluster local -n 4
34 ipcluster start --n=4
37 35
38 36 This command will start 4 IPython engines on the local computer.
39 37 .SH SEE ALSO
@@ -16,65 +16,139 b" ipcontroller is a control tool for IPython's parallel computing functions."
16 16 show this help message and exit
17 17 .TP
18 18 .B
19 \-\-client\-ip=CLIENT_IP
20 the IP address or hostname the controller will listen on for
21 client connections
22 19 .TP
23 .B
24 \-\-client\-port=CLIENT_PORT
25 the port the controller will listen on for client connections
26 .TP
27 .B
28 \-\-client\-location=CLIENT_LOCATION
29 hostname or ip for clients to connect to
20 .B \-\-no-secure
21 Don't authenticate messages.
30 22 .TP
31 .B
32 \-x
33 turn off all client security
23 .B \-\-usethreads
24 Use threads instead of processes for the schedulers
34 25 .TP
35 .B
36 \-\-client\-cert\-file=CLIENT_CERT_FILE
37 file to store the client SSL certificate
26 .B \-\-init
27 Initialize profile with default config files
38 28 .TP
39 .B
40 \-\-task\-furl\-file=TASK_FURL_FILE
41 file to store the FURL for task clients to connect with
29 .B \-\-log-to-file
30 send log output to a file
42 31 .TP
43 .B
44 \-\-multiengine\-furl\-file=MULTIENGINE_FURL_FILE
45 file to store the FURL for multiengine clients to connect with
32 .B \-\-reuse
33 reuse existing json connection files
46 34 .TP
47 .B
48 \-\-engine\-ip=ENGINE_IP
49 the IP address or hostname the controller will listen on for engine connections
35 .B \-\-mongodb
36 use the MongoDB backend
50 37 .TP
51 .B
52 \-\-engine\-port=ENGINE_PORT
53 the port the controller will listen on for engine connections
38 .B \-\-quiet
39 set log level to logging.CRITICAL (minimize logging output)
54 40 .TP
55 .B
56 \-\-engine\-location=ENGINE_LOCATION
57 the IP address or hostname for engine to connect to
41 .B \-\-debug
42 set log level to logging.DEBUG (maximize logging output)
58 43 .TP
59 .B
60 \-y
61 turn off all engine security
44 .B \-\-sqlitedb
45 use the SQLiteDB backend
62 46 .TP
63 .B
64 \-\-engine\-cert\-file=ENGINE_CERT_FILE
65 file to store the engine SSL certificate
47 .B \-\-dictdb
48 use the in-memory DictDB backend
66 49 .TP
67 .B
68 \-\-engine\-furl\-file=ENGINE_FURL_FILE
69 file to store the FURL for engines to connect with
50 .B \-\-secure
51 Use HMAC digests for authentication of messages.
70 52 .TP
71 .B
72 \-l LOGFILE, \-\-logfile=LOGFILE
73 log file name (default is stdout)
53 .B \-\-profile=<Unicode> (BaseIPythonApplication.profile)
54 Default: u'default'
55 The IPython profile to use.
74 56 .TP
75 .B
76 \-r
77 try to reuse all furl files
57 .B \-\-hwm=<Int> (TaskScheduler.hwm)
58 Default: 0
59 .br
60 specify the High Water Mark (HWM) for the downstream socket in the Task
61 scheduler. This is the maximum number of allowed outstanding tasks on each
62 engine.
63 .TP
64 .B \-\-secure=<Bool> (IPControllerApp.secure)
65 Default: True
66 Whether to use HMAC digests for extra message authentication.
67 .TP
68 .B \-\-ip=<Unicode> (HubFactory.ip)
69 Default: '127.0.0.1'
70 The IP address for registration. This is generally either '127.0.0.1' for
71 loopback only or '*' for all interfaces. [default: '127.0.0.1']
72 .TP
73 .B \-\-log-url=<Unicode> (BaseParallelApplication.log_url)
74 Default: ''
75 The ZMQ URL of the iplogger to aggregate logging.
76 .TP
77 .B \-\-work-dir=<Unicode> (BaseParallelApplication.work_dir)
78 Default: u'/Users/minrk/dev/ip/mine/docs/man'
79 Set the working dir for the process.
80 .TP
81 .B \-\-port=<Int> (HubFactory.regport)
82 Default: 0
83 The port on which the Hub listens for registration.
84 .TP
85 .B \-\-profile-dir=<Unicode> (ProfileDir.location)
86 Default: u''
87 Set the profile location directly. This overrides the logic used by the
88 `profile` option.
89 .TP
90 .B \-\-ident=<CBytes> (Session.session)
91 Default: ''
92 The UUID identifying this session.
93 .TP
94 .B \-\-log-to-file=<Bool> (BaseParallelApplication.log_to_file)
95 Default: False
96 whether to log to a file
97 .TP
98 .B \-\-ipython-dir=<Unicode> (BaseIPythonApplication.ipython_dir)
99 Default: u'/Users/minrk/.ipython'
100 The name of the IPython directory. This directory is used for logging
101 configuration (through profiles), history storage, etc. The default is
102 usually $HOME/.ipython. This options can also be specified through the
103 environment variable IPYTHON_DIR.
104 .TP
105 .B \-\-url=<Unicode> (HubFactory.url)
106 Default: ''
107 The 0MQ url used for registration. This sets transport, ip, and port in one
108 variable. For example: url='tcp://127.0.0.1:12345' or url='epgm://*:90210'
109 .TP
110 .B \-\-user=<Unicode> (Session.username)
111 Default: 'minrk'
112 Username for the Session. Default is your system username.
113 .TP
114 .B \-\-ping=<CFloat> (HeartMonitor.period)
115 Default: 1000
116 The frequency at which the Hub pings the engines for heartbeats (in ms)
117 .TP
118 .B \-\-log-level=<Enum> (Application.log_level)
119 Default: 30
120 Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
121 Set the log level by value or name.
122 .TP
123 .B \-\-location=<Unicode> (IPControllerApp.location)
124 Default: u''
125 The external IP or domain name of the Controller, used for disambiguating
126 engine and client connections.
127 .TP
128 .B \-\-clean-logs=<Bool> (BaseParallelApplication.clean_logs)
129 Default: False
130 whether to cleanup old logfiles before starting
131 .TP
132 .B \-\-scheme=<Enum> (TaskScheduler.scheme_name)
133 Default: 'leastload'
134 Choices: ('leastload', 'pure', 'lru', 'plainrandom', 'weighted', 'twobin')
135 select the task scheduler scheme [default: Python LRU] Options are: 'pure',
136 'lru', 'plainrandom', 'weighted', 'twobin','leastload'
137 .TP
138 .B \-\-keyfile=<Unicode> (Session.keyfile)
139 Default: ''
140 path to file containing execution key.
141 .TP
142 .B \-\-transport=<Unicode> (HubFactory.transport)
143 Default: 'tcp'
144 The 0MQ transport for communications. This will likely be the default of
145 'tcp', but other values include 'ipc', 'epgm', 'inproc'.
146 .TP
147 .B \-\-ssh=<Unicode> (IPControllerApp.ssh_server)
148 Default: u''
149 ssh url for clients to use when connecting to the Controller processes. It
150 should be of the form: [user@]server[:port]. The Controller's listening
151 addresses must be accessible from the ssh server
78 152 .SH SEE ALSO
79 153 .BR ipython(1), ipcluster(1), ipengine(1)
80 154 .br
@@ -84,4 +158,5 b' the IPython Development Team.'
84 158 .PP
85 159 This manual page was written by Stephan Peijnik <debian@sp.or.at>,
86 160 for the Debian project (but may be used by others). Modified by Fernando Perez
87 <Fernando.Perez@berkeley.edu> for inclusion in IPython.
161 <Fernando.Perez@berkeley.edu> for inclusion in IPython, and updated by
162 Min Ragan-Kelley <benjaminrk@gmail.com> for 0.11.
@@ -1,4 +1,4 b''
1 .TH IPENGINE 1 "October 28, 2008" "" ""
1 .TH IPENGINE 1 "July 15, 2011" "" ""
2 2 .SH NAME
3 3 \fBipengine \- IPython parallel computing engine control tool
4 4 .SH SYNOPSIS
@@ -16,8 +16,12 b" ipengine is a control tool for IPython's parallel computing functions."
16 16 show this help message and exit
17 17 .TP
18 18 .B
19 \-\-furl\-file=FURL_FILE
20 The filename containing the FURL of the controller
19 \-\-profile=name
20 The name of the IPython configuration profile to use.
21 .TP
22 .B
23 \-\-file=URL_FILE
24 The JSON file containing the connection information of the controller.
21 25 .TP
22 26 .B
23 27 \-\-mpi=MPI
@@ -2,7 +2,7 b''
2 2 .\" First parameter, NAME, should be all caps
3 3 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4 4 .\" other parameters are allowed: see man(7), man(1)
5 .TH IPYTHON 1 "November 30, 2004"
5 .TH IPYTHON 1 "July 15, 2011"
6 6 .\" Please adjust this date whenever revising the manpage.
7 7 .\"
8 8 .\" Some roff macros, for reference:
@@ -22,304 +22,205 b''
22 22 .\" To preview this page as plain text: nroff -man ipython.1
23 23 .\"
24 24 .SH NAME
25 ipython \- An Enhanced Interactive Python
25 ipython \- Tools for Interactive Computing in Python.
26 26 .SH SYNOPSIS
27 27 .B ipython
28 28 .RI [ options ] " files" ...
29 29 .SH DESCRIPTION
30 An interactive Python shell with automatic history (input and output),
31 dynamic object introspection, easier configuration, command
32 completion, access to the system shell, integration with numerical and
33 scientific computing tools, and more.
30 An interactive Python shell with automatic history (input and output), dynamic
31 object introspection, easier configuration, command completion, access to the
32 system shell, integration with numerical and scientific computing tools, and
33 more.
34 34 .
35 35 .SH REGULAR OPTIONS
36 After the above threading options have been given, regular options can follow
37 in any order. All options can be abbreviated to their shortest non-ambiguous
38 form and are case-sensitive. One or two dashes can be used. Some options
39 have an alternate short form, indicated after a |.
36 All options that take values, must be of the form '\-\-name=value', but
37 flags that take no arguments are allowed a single '\-' to allow common
38 patterns like: 'ipython -i myscript.py'. To pass arguments to scripts,
39 rather than to IPython, specify them after '--'.
40 40 .br
41 41 .sp 1
42 Most options can also be set from your ipythonrc configuration file.
42 All options can also be set from your ipython_config.py configuration file.
43 43 See the provided examples for assistance. Options given on the
44 commandline override the values set in the ipythonrc file.
44 commandline override the values set in ipython_config.py. To generate
45 the default config file, do `ipython profile create`.
45 46 .br
46 47 .sp 1
47 48 All options with a [no] prepended can be specified in negated form
48 (\-nooption instead of \-option) to turn the feature off.
49 (\\--no\-option instead of \-\-option) to turn the feature off.
49 50 .TP
50 51 .B \-h, \-\-help
51 52 Show summary of options.
52 .TP
53 .B \-autocall <val>
54 Make IPython automatically call any callable object even if you didn't type
55 explicit parentheses. For example, 'str 43' becomes
56 str(43) automatically. The value can be '0' to disable the
57 feature, '1' for 'smart' autocall, where it is not applied if
58 there are no more arguments on the line, and '2' for 'full'
59 autocall, where all callable objects are automatically called
60 (even if no arguments are present). The default is '1'.
61 .TP
62 .B \-[no]autoindent
63 Turn automatic indentation on/off.
64 .TP
65 .B \-[no]automagic
66 Make magic commands automatic (without needing their first character
67 to be %). Type %magic at the IPython prompt for more information.
68 .TP
69 .B \-[no]autoedit_syntax
70 When a syntax error occurs after editing a file, automatically open the file
71 to the trouble causing line for convenient fixing.
72 .TP
73 .B \-[no]banner
74 Print the intial information banner (default on).
75 .TP
76 .B \-c <command>
77 Execute the given command string, and set sys.argv to ['c']. This is similar
78 to the \-c option in the normal Python interpreter.
79 .TP
80 .B \-cache_size|cs <n>
81 Size of the output cache (maximum number of entries to hold in
82 memory). The default is 1000, you can change it permanently in your
83 config file. Setting it to 0 completely disables the caching system,
84 and the minimum value accepted is 20 (if you provide a value less than
85 20, it is reset to 0 and a warning is issued). This limit is defined
86 because otherwise you'll spend more time re-flushing a too small cache
87 than working.
88 .TP
89 .B \-classic|cl
90 Gives IPython a similar feel to the classic Python prompt.
91 .TP
92 .B \-colors <scheme>
93 Color scheme for prompts and exception reporting. Currently
94 implemented: NoColor, Linux, and LightBG.
95 .TP
96 .B \-[no]color_info
97 IPython can display information about objects via a set of functions,
98 and optionally can use colors for this, syntax highlighting source
99 code and various other elements. However, because this information is
100 passed through a pager (like 'less') and many pagers get confused with
101 color codes, this option is off by default. You can test it and turn
102 it on permanently in your ipythonrc file if it works for you. As a
103 reference, the 'less' pager supplied with Mandrake 8.2 works ok, but
104 that in RedHat 7.2 doesn't.
105 .br
106 .sp 1
107 Test it and turn it on permanently if it works with your system. The
108 magic function @color_info allows you to toggle this interactively for
109 testing.
110 .TP
111 .B \-[no]confirm_exit
112 Set to confirm when you try to exit IPython with an EOF (Control-D in
113 Unix, Control-Z/Enter in Windows). Note that using the magic functions
114 @Exit or @Quit you can force a direct exit, bypassing any
115 confirmation.
116 .TP
117 .B \-[no]debug
118 Show information about the loading process. Very useful to pin down
119 problems with your configuration files or to get details about session
120 restores.
121 .TP
122 .B \-[no]deep_reload
123 IPython can use the deep_reload module which reloads changes in
124 modules recursively (it replaces the reload() function, so you don't
125 need to change anything to use it). deep_reload() forces a full reload
126 of modules whose code may have changed, which the default reload()
127 function does not.
128 .br
129 .sp 1
130 When deep_reload is off, IPython will use the normal reload(), but
53 .B \-\-no-autoindent
54 Turn off autoindenting.
55 .TP
56 .B \-\-autoedit-syntax
57 Turn on auto editing of files with syntax errors.
58 .TP
59 .B \-\-pylab
60 Pre-load matplotlib and numpy for interactive use with
61 the default matplotlib backend.
62 .TP
63 .B \-\-confirm-exit
64 Set to confirm when you try to exit IPython with an EOF (Control-D
65 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',
66 you can force a direct exit without any confirmation.
67 .TP
68 .B \-\-deep-reload
69 Enable deep (recursive) reloading by default. IPython can use the
70 deep_reload module which reloads changes in modules recursively (it
71 replaces the reload() function, so you don't need to change anything to
72 use it). deep_reload() forces a full reload of modules whose code may
73 have changed, which the default reload() function does not. When
74 deep_reload is off, IPython will use the normal reload(), but
131 75 deep_reload will still be available as dreload(). This feature is off
132 76 by default [which means that you have both normal reload() and
133 77 dreload()].
134 78 .TP
135 .B \-editor <name>
136 Which editor to use with the @edit command. By default, IPython will
137 honor your EDITOR environment variable (if not set, vi is the Unix
138 default and notepad the Windows one). Since this editor is invoked on
139 the fly by IPython and is meant for editing small code snippets, you
140 may want to use a small, lightweight editor here (in case your default
141 EDITOR is something like Emacs).
142 .TP
143 .B \-ipythondir <name>
144 The name of your IPython configuration directory IPYTHON_DIR. This can
145 also be specified through the environment variable IPYTHON_DIR.
146 .TP
147 .B \-log|l
148 Generate a log file of all input. The file is named ipython_log.py in your
149 current directory (which prevents logs from multiple IPython sessions from
150 trampling each other). You can use this to later restore a session by loading
151 your logfile as a file to be executed with option -logplay (see below).
152 .TP
153 .B \-logfile|lf
154 Specify the name of your logfile.
155 .TP
156 .B \-logplay|lp
157 Replay a previous log. For restoring a session as close as possible to
158 the state you left it in, use this option (don't just run the
159 logfile). With \-logplay, IPython will try to reconstruct the previous
160 working environment in full, not just execute the commands in the
161 logfile.
162 .br
163 .sp 1
164 When a session is restored, logging is automatically turned on again
165 with the name of the logfile it was invoked with (it is read from the
166 log header). So once you've turned logging on for a session, you can
167 quit IPython and reload it as many times as you want and it will
168 continue to log its history and restore from the beginning every time.
169 .br
170 .sp 1
171 Caveats: there are limitations in this option. The history variables
172 _i*,_* and _dh don't get restored properly. In the future we will try
173 to implement full session saving by writing and retrieving a
174 snapshot of the memory state of IPython. But our first attempts
175 failed because of inherent limitations of Python's Pickle module, so
176 this may have to wait.
177 .TP
178 .B \-[no]messages
179 Print messages which IPython collects about its startup process
180 (default on).
181 .TP
182 .B \-[no]pdb
183 Automatically call the pdb debugger after every uncaught exception. If
184 you are used to debugging using pdb, this puts you automatically
185 inside of it after any call (either in IPython or in code called by
186 it) which triggers an exception which goes uncaught.
187 .TP
188 .B \-pydb
189 Makes IPython use the third party "pydb" package as debugger,
190 instead of pdb. Requires that pydb is installed.
191 .TP
192 .B \-[no]pprint
193 IPython can optionally use the pprint (pretty printer) module for
194 displaying results. pprint tends to give a nicer display of nested
195 data structures. If you like it, you can turn it on permanently in
196 your config file (default off).
197 .TP
198 .B \-profile|p <name>
199 Assume that your config file is ipythonrc-<name> (looks in current dir
200 first, then in IPYTHON_DIR). This is a quick way to keep and load
201 multiple config files for different tasks, especially if you use the
202 include option of config files. You can keep a basic
203 IPYTHON_DIR/ipythonrc file and then have other 'profiles' which include
204 this one and load extra things for particular tasks. For example:
205 .br
206 .sp 1
207 1) $HOME/.ipython/ipythonrc : load basic things you always want.
208 .br
209 2) $HOME/.ipython/ipythonrc-math : load (1) and basic math-related
210 modules.
211 .br
212 3) $HOME/.ipython/ipythonrc-numeric : load (1) and Numeric and
213 plotting modules.
214 .br
215 .sp 1
216 Since it is possible to create an endless loop by having circular file
217 inclusions, IPython will stop if it reaches 15 recursive inclusions.
218 .TP
219 .B \-prompt_in1|pi1 <string>
220 Specify the string used for input prompts. Note that if you are using
221 numbered prompts, the number is represented with a '\\#' in the
222 string. Don't forget to quote strings with spaces embedded in
223 them. Default: 'In [\\#]: '.
224 .br
225 .sp 1
226 Most bash-like escapes can be used to customize IPython's prompts, as well as
227 a few additional ones which are IPython-specific. All valid prompt escapes
228 are described in detail in the Customization section of the IPython HTML/PDF
229 manual.
230 .TP
231 .B \-prompt_in2|pi2 <string>
232 Similar to the previous option, but used for the continuation prompts. The
233 special sequence '\\D' is similar to '\\#', but with all digits replaced dots
234 (so you can have your continuation prompt aligned with your input
235 prompt). Default: ' .\\D.: ' (note three spaces at the start for alignment
236 with 'In [\\#]').
237 .TP
238 .B \-prompt_out|po <string>
239 String used for output prompts, also uses numbers like prompt_in1.
240 Default: 'Out[\\#]:'.
241 .TP
242 .B \-quick
243 Start in bare bones mode (no config file loaded).
244 .TP
245 .B \-rcfile <name>
246 Name of your IPython resource configuration file. normally IPython
247 loads ipythonrc (from current directory) or IPYTHON_DIR/ipythonrc. If
248 the loading of your config file fails, IPython starts with a bare
249 bones configuration (no modules loaded at all).
250 .TP
251 .B \-[no]readline
252 Use the readline library, which is needed to support name completion
253 and command history, among other things. It is enabled by default, but
254 may cause problems for users of X/Emacs in Python comint or shell
255 buffers.
256 .br
257 .sp 1
258 Note that emacs 'eterm' buffers (opened with M-x term) support
259 IPython's readline and syntax coloring fine, only 'emacs' (M-x shell
260 and C-c !) buffers do not.
261 .TP
262 .B \-screen_length|sl <n>
263 Number of lines of your screen. This is used to control printing of
264 very long strings. Strings longer than this number of lines will be
265 sent through a pager instead of directly printed.
266 .br
267 .sp 1
268 The default value for this is 0, which means IPython will auto-detect
269 your screen size every time it needs to print certain potentially long
270 strings (this doesn't change the behavior of the 'print' keyword, it's
271 only triggered internally). If for some reason this isn't working well
272 (it needs curses support), specify it yourself. Otherwise don't change
273 the default.
274 .TP
275 .B \-separate_in|si <string>
276 Separator before input prompts. Default '\n'.
277 .TP
278 .B \-separate_out|so <string>
279 Separator before output prompts. Default: 0 (nothing).
280 .TP
281 .B \-separate_out2|so2 <string>
282 Separator after output prompts. Default: 0 (nothing).
283 .TP
284 .B \-nosep
285 Shorthand for '\-separate_in 0 \-separate_out 0 \-separate_out2 0'.
286 Simply removes all input/output separators.
287 .TP
288 .B \-upgrade
289 Allows you to upgrade your IPYTHON_DIR configuration when you install a
290 new version of IPython. Since new versions may include new command
291 lines options or example files, this copies updated ipythonrc-type
292 files. However, it backs up (with a .old extension) all files which
293 it overwrites so that you can merge back any custimizations you might
294 have in your personal files.
295 .TP
296 .B \-Version
297 Print version information and exit.
298 .TP
299 .B -wxversion <string>
300 Select a specific version of wxPython (used in conjunction with
301 \-wthread). Requires the wxversion module, part of recent wxPython
302 distributions.
303 .TP
304 .B \-xmode <modename>
305 Mode for exception reporting. The valid modes are Plain, Context, and
306 Verbose.
307 .br
308 .sp 1
309 \- Plain: similar to python's normal traceback printing.
310 .br
311 .sp 1
312 \- Context: prints 5 lines of context source code around each line in the
313 traceback.
314 .br
315 .sp 1
316 \- Verbose: similar to Context, but additionally prints the variables
317 currently visible where the exception happened (shortening their strings if
318 too long). This can potentially be very slow, if you happen to have a huge
319 data structure whose string representation is complex to compute. Your
320 computer may appear to freeze for a while with cpu usage at 100%. If this
321 occurs, you can cancel the traceback with Ctrl-C (maybe hitting it more than
322 once).
79 .B \-\-no-autoedit-syntax
80 Turn off auto editing of files with syntax errors.
81 .TP
82 .B \-\-term-title
83 Enable auto setting the terminal title.
84 .TP
85 .B \-\-no-confirm-exit
86 Don't prompt the user when exiting.
87 .TP
88 .B \-\-autoindent
89 Turn on autoindenting.
90 .TP
91 .B \-\-classic
92 Gives IPython a similar feel to the classic Python prompt.
93 .TP
94 .B \-\-no-automagic
95 Turn off the auto calling of magic commands.
96 .TP
97 .B \-\-banner
98 Display a banner upon starting IPython.
99 .TP
100 .B \-\-automagic
101 Turn on the auto calling of magic commands. Type %%magic at the
102 IPython prompt for more information.
103 .TP
104 .B \-\-no-deep-reload
105 Disable deep (recursive) reloading by default.
106 .TP
107 .B \-\-no-term-title
108 Disable auto setting the terminal title.
109 .TP
110 .B \-\-nosep
111 Eliminate all spacing between prompts.
112 .TP
113 .B \-\-i
114 also works as '-i'
115 If running code from the command line, become interactive afterwards.
116 .TP
117 .B \-\-debug
118 set log level to logging.DEBUG (maximize logging output)
119 .TP
120 .B \-\-pprint
121 Enable auto pretty printing of results.
122 .TP
123 .B \-\-quiet
124 set log level to logging.CRITICAL (minimize logging output)
125 .TP
126 .B \-\-pdb
127 Enable auto calling the pdb debugger after every exception.
128 .TP
129 .B \-\-color-info
130 IPython can display information about objects via a set of func-
131 tions, and optionally can use colors for this, syntax highlighting
132 source code and various other elements. However, because this
133 information is passed through a pager (like 'less') and many pagers get
134 confused with color codes, this option is off by default. You can test
135 it and turn it on permanently in your ipython_config.py file if it
136 works for you. Test it and turn it on permanently if it works with
137 your system. The magic function %%color_info allows you to toggle this
138 interactively for testing.
139 .TP
140 .B \-\-init
141 Initialize profile with default config files
142 .TP
143 .B \-\-no-pdb
144 Disable auto calling the pdb debugger after every exception.
145 .TP
146 .B \-\-quick
147 Enable quick startup with no config files.
148 .TP
149 .B \-\-no-color-info
150 Disable using colors for info related things.
151 .TP
152 .B \-\-no-pprint
153 Disable auto auto pretty printing of results.
154 .TP
155 .B \-\-no-banner
156 Don't display a banner upon starting IPython.
157 .TP
158 .B \-\-profile=<Unicode> (BaseIPythonApplication.profile)
159 Default: u'default'
160 The IPython profile to use.
161 .TP
162 .B \-\-c=<Unicode> (InteractiveShellApp.code_to_run)
163 Default: ''
164 Execute the given command string.
165 .TP
166 .B \-\-logappend=<Unicode> (InteractiveShell.logappend)
167 Default: ''
168 Start logging to the given file in append mode.
169 .TP
170 .B \-\-autocall=<Enum> (InteractiveShell.autocall)
171 Default: 1
172 Choices: (0, 1, 2)
173 Make IPython automatically call any callable object even if you didn't type
174 explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
175 The value can be '0' to disable the feature, '1' for 'smart' autocall, where
176 it is not applied if there are no more arguments on the line, and '2' for
177 'full' autocall, where all callable objects are automatically called (even
178 if no arguments are present). The default is '1'.
179 .TP
180 .B \-\-ipython-dir=<Unicode> (BaseIPythonApplication.ipython_dir)
181 Default: u'/Users/minrk/.ipython'
182 The name of the IPython directory. This directory is used for logging
183 configuration (through profiles), history storage, etc. The default is
184 usually $HOME/.ipython. This options can also be specified through the
185 environment variable IPYTHON_DIR.
186 .TP
187 .B \-\-gui=<CaselessStrEnum> (TerminalIPythonApp.gui)
188 Default: None
189 Choices: ('qt', 'wx', 'gtk')
190 Enable GUI event loop integration ('qt', 'wx', 'gtk').
191 .TP
192 .B \-\-pylab=<CaselessStrEnum> (TerminalIPythonApp.pylab)
193 Default: None
194 Choices: ['tk', 'qt', 'wx', 'gtk', 'osx', 'auto']
195 Pre-load matplotlib and numpy for interactive use, selecting a particular
196 matplotlib backend and loop integration.
197 .TP
198 .B \-\-ext=<Unicode> (InteractiveShellApp.extra_extension)
199 Default: ''
200 dotted module name of an IPython extension to load.
201 .TP
202 .B \-\-log-level=<Enum> (Application.log_level)
203 Default: 30
204 Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL')
205 Set the log level by value or name.
206 .TP
207 .B \-\-colors=<CaselessStrEnum> (InteractiveShell.colors)
208 Default: 'LightBG'
209 Choices: ('NoColor', 'LightBG', 'Linux')
210 Set the color scheme (NoColor, Linux, or LightBG).
211 .TP
212 .B \-\-cache-size=<Int> (InteractiveShell.cache_size)
213 Default: 1000
214 Set the size of the output cache. The default is 1000, you can change it
215 permanently in your config file. Setting it to 0 completely disables the
216 caching system, and the minimum value accepted is 20 (if you provide a value
217 less than 20, it is reset to 0 and a warning is issued). This limit is
218 defined because otherwise you'll spend more time re-flushing a too small
219 cache than working
220 .TP
221 .B \-\-logfile=<Unicode> (InteractiveShell.logfile)
222 Default: ''
223 The name of the logfile to use.
323 224 .
324 225 .SH EMBEDDING
325 226 It is possible to start an IPython instance inside your own Python
@@ -336,4 +237,5 b" values because you won't break your code in bizarre ways by doing so."
336 237 IPython was written by Fernando Perez <fperez@colorado.edu>, based on earlier
337 238 code by Janko Hauser <jh@comunit.de> and Nathaniel Gray
338 239 <n8gray@caltech.edu>. This manual page was written by Jack Moffitt
339 <jack@xiph.org>, for the Debian project (but may be used by others).
240 <jack@xiph.org>, for the Debian project (but may be used by others), and updated by
241 Min Ragan-Kelley <benjaminrk@gmail.com> for 0.11.
@@ -1,4 +1,4 b''
1 .TH IRUNNER 1 "April 24, 2007" "" ""
1 .TH IRUNNER 1 "July 15, 2011" "" ""
2 2 .SH NAME
3 3 \fBirunner \- interactive runner interface
4 4 .SH SYNOPSIS
@@ -2,7 +2,7 b''
2 2 .\" First parameter, NAME, should be all caps
3 3 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
4 4 .\" other parameters are allowed: see man(7), man(1)
5 .TH PYCOLOR 1 "May 12, 2007"
5 .TH PYCOLOR 1 "July 15, 2011"
6 6 .\" Please adjust this date whenever revising the manpage.
7 7 .\"
8 8 .\" Some roff macros, for reference:
@@ -30,9 +30,10 b' given, or the file name - is given) to standard out.'
30 30 Output a brief help message.
31 31 .TP
32 32 .B \-s, \-\-scheme <scheme>
33 Give the color scheme to use. Currently only Linux (default),
34 LightBG, and NOColor are implemented.
33 Give the color scheme to use. Currently only Linux (default), LightBG, and
34 NoColor are implemented.
35 35 .SH AUTHOR
36 pycolor was written by Fernando Perez <fperez@colorado.edu>.
36 pycolor is part of the IPython project (http://ipython.org).
37 37 This manual page was written by Jack Moffitt <jack@xiph.org>,
38 for the Debian project (but may be used by others).
38 for the Debian project (but may be used by others). Updated by Fernando Perez
39 <fernando.perez@berkeley.edu>.
General Comments 0
You need to be logged in to leave comments. Login now