home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1941 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  30.1 KB  |  414 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. """
  5. IPython -- An enhanced Interactive Python
  6. =========================================
  7.  
  8. A Python shell with automatic history (input and output), dynamic object
  9. introspection, easier configuration, command completion, access to the system
  10. shell and more.
  11.  
  12. IPython can also be embedded in running programs. See EMBEDDING below.
  13.  
  14.  
  15. USAGE
  16.        ipython [options] files
  17.  
  18.        If invoked with no options, it executes all the files listed in
  19.        sequence and drops you into the interpreter while still acknowledging
  20.        any options you may have set in your ipythonrc file. This behavior is
  21.        different from standard Python, which when called as python -i will
  22.        only execute one file and will ignore your configuration setup.
  23.  
  24.        Please note that some of the configuration options are not available at
  25.        the command line, simply because they are not practical here. Look into
  26.        your ipythonrc configuration file for details on those. This file
  27.        typically installed in the $HOME/.ipython directory.
  28.  
  29.        For Windows users, $HOME resolves to C:\\Documents and
  30.        Settings\\YourUserName in most instances, and _ipython is used instead
  31.        of .ipython, since some Win32 programs have problems with dotted names
  32.        in directories.
  33.  
  34.        In the rest of this text, we will refer to this directory as
  35.        IPYTHONDIR.
  36.  
  37.  
  38. SPECIAL THREADING OPTIONS
  39.        The following special options are ONLY valid at the  beginning  of  the
  40.        command line, and not later.  This is because they control the initial-
  41.        ization of ipython itself, before the normal option-handling  mechanism
  42.        is active.
  43.  
  44.        -gthread, -qthread, -q4thread, -wthread, -pylab
  45.  
  46.               Only ONE of these can be given, and it can only be given as the
  47.               first option passed to IPython (it will have no effect in any
  48.               other position).  They provide threading support for the GTK, QT
  49.               and WXWidgets toolkits, and for the matplotlib library.
  50.  
  51.               With any of the first four options, IPython starts running a
  52.               separate thread for the graphical toolkit's operation, so that
  53.               you can open and control graphical elements from within an
  54.               IPython command line, without blocking.  All four provide
  55.               essentially the same functionality, respectively for GTK, QT3,
  56.               QT4 and WXWidgets (via their Python interfaces).
  57.  
  58.               Note that with -wthread, you can additionally use the -wxversion
  59.               option to request a specific version of wx to be used.  This
  60.               requires that you have the 'wxversion' Python module installed,
  61.               which is part of recent wxPython distributions.
  62.  
  63.               If -pylab is given, IPython loads special support for the mat-
  64.               plotlib library (http://matplotlib.sourceforge.net), allowing
  65.               interactive usage of any of its backends as defined in the
  66.               user's .matplotlibrc file.  It automatically activates GTK, QT
  67.               or WX threading for IPyhton if the choice of matplotlib backend
  68.               requires it.  It also modifies the %run command to correctly
  69.               execute (without blocking) any matplotlib-based script which
  70.               calls show() at the end.
  71.  
  72.        -tk    The -g/q/q4/wthread options, and -pylab (if matplotlib is
  73.               configured to use GTK, QT or WX), will normally block Tk
  74.               graphical interfaces.  This means that when GTK, QT or WX
  75.               threading is active, any attempt to open a Tk GUI will result in
  76.               a dead window, and possibly cause the Python interpreter to
  77.               crash.  An extra option, -tk, is available to address this
  78.               issue.  It can ONLY be given as a SECOND option after any of the
  79.               above (-gthread, -qthread, q4thread, -wthread or -pylab).
  80.  
  81.               If -tk is given, IPython will try to coordinate Tk threading
  82.               with GTK, QT or WX.  This is however potentially unreliable, and
  83.               you will have to test on your platform and Python configuration
  84.               to determine whether it works for you.  Debian users have
  85.               reported success, apparently due to the fact that Debian builds
  86.               all of Tcl, Tk, Tkinter and Python with pthreads support.  Under
  87.               other Linux environments (such as Fedora Core 2/3), this option
  88.               has caused random crashes and lockups of the Python interpreter.
  89.               Under other operating systems (Mac OSX and Windows), you'll need
  90.               to try it to find out, since currently no user reports are
  91.               available.
  92.  
  93.               There is unfortunately no way for IPython to determine  at  run-
  94.               time  whether -tk will work reliably or not, so you will need to
  95.               do some experiments before relying on it for regular work.
  96.  
  97. A WARNING ABOUT SIGNALS AND THREADS
  98.  
  99.        When any of the thread systems (GTK, QT or WX) are active, either
  100.        directly or via -pylab with a threaded backend, it is impossible to
  101.        interrupt long-running Python code via Ctrl-C.  IPython can not pass
  102.        the KeyboardInterrupt exception (or the underlying SIGINT) across
  103.        threads, so any long-running process started from IPython will run to
  104.        completion, or will have to be killed via an external (OS-based)
  105.        mechanism.
  106.  
  107.        To the best of my knowledge, this limitation is imposed by the Python
  108.        interpreter itself, and it comes from the difficulty of writing
  109.        portable signal/threaded code.  If any user is an expert on this topic
  110.        and can suggest a better solution, I would love to hear about it.  In
  111.        the IPython sources, look at the Shell.py module, and in particular at
  112.        the runcode() method.
  113.  
  114. REGULAR OPTIONS
  115.        After the above threading options have been given, regular options  can
  116.        follow  in any order.  All options can be abbreviated to their shortest
  117.        non-ambiguous form and are case-sensitive.  One or two  dashes  can  be
  118.        used.   Some options have an alternate short form, indicated after a |.
  119.  
  120.        Most options can also be set from your  ipythonrc  configuration  file.
  121.        See the provided examples for assistance.  Options given on the comman-
  122.        dline override the values set in the ipythonrc file.
  123.  
  124.        All options with a [no] prepended can be specified in negated form
  125.        (using -nooption instead of -option) to turn the feature off.
  126.  
  127.        -h, --help
  128.               Show summary of options.
  129.  
  130.        -pylab This can only be given as the first option passed to IPython (it
  131.               will have no effect in any other position). It adds special sup-
  132.               port   for  the  matplotlib  library  (http://matplotlib.source-
  133.               forge.net), allowing interactive usage of any of its backends as
  134.               defined  in  the  user's  .matplotlibrc  file.  It automatically
  135.               activates GTK or WX threading for IPyhton if the choice of  mat-
  136.               plotlib  backend requires it.  It also modifies the @run command
  137.               to correctly execute  (without  blocking)  any  matplotlib-based
  138.               script which calls show() at the end.
  139.  
  140.        -autocall <val>
  141.               Make IPython automatically call any callable object even if you
  142.               didn't type explicit parentheses. For example, 'str 43' becomes
  143.               'str(43)' automatically.  The value can be '0' to disable the
  144.               feature, '1' for 'smart' autocall, where it is not applied if
  145.               there are no more arguments on the line, and '2' for 'full'
  146.               autocall, where all callable objects are automatically called
  147.               (even if no arguments are present).  The default is '1'.
  148.  
  149.        -[no]autoindent
  150.               Turn automatic indentation on/off.
  151.  
  152.        -[no]automagic
  153.               Make magic commands automatic (without needing their first char-
  154.               acter to be %).  Type %magic at  the  IPython  prompt  for  more
  155.               information.
  156.  
  157.        -[no]autoedit_syntax
  158.               When a syntax error occurs after editing a file, automatically
  159.               open the file to the trouble causing line for convenient fixing.
  160.  
  161.        -[no]banner
  162.               Print the intial information banner (default on).
  163.  
  164.        -c <command>
  165.               Execute  the  given  command  string, and set sys.argv to ['c'].
  166.               This is similar to the -c option in  the  normal  Python  inter-
  167.               preter.
  168.  
  169.        -cache_size|cs <n>
  170.               Size  of  the output cache (maximum number of entries to hold in
  171.               memory).  The default is 1000, you can change it permanently  in
  172.               your  config  file.   Setting  it  to  0 completely disables the
  173.               caching system, and the minimum value accepted  is  20  (if  you
  174.               provide  a value less than 20, it is reset to 0 and a warning is
  175.               issued).  This limit is defined because otherwise  you'll  spend
  176.               more time re-flushing a too small cache than working.
  177.  
  178.        -classic|cl
  179.               Gives IPython a similar feel to the classic Python prompt.
  180.  
  181.        -colors <scheme>
  182.               Color  scheme  for  prompts  and exception reporting.  Currently
  183.               implemented: NoColor, Linux, and LightBG.
  184.  
  185.        -[no]color_info
  186.               IPython can display information about objects via a set of func-
  187.               tions, and optionally can use colors for this, syntax highlight-
  188.               ing source code and various other  elements.   However,  because
  189.               this  information  is  passed  through a pager (like 'less') and
  190.               many pagers get confused with color codes, this option is off by
  191.               default.   You  can  test  it and turn it on permanently in your
  192.               ipythonrc file if it works for you.  As a reference, the  'less'
  193.               pager  supplied  with  Mandrake 8.2 works ok, but that in RedHat
  194.               7.2 doesn't.
  195.  
  196.               Test it and turn it on permanently if it works with your system.
  197.               The  magic function @color_info allows you to toggle this inter-
  198.               actively for testing.
  199.  
  200.        -[no]confirm_exit
  201.               Set to confirm when you try to exit IPython with  an  EOF  (Con-
  202.               trol-D in Unix, Control-Z/Enter in Windows). Note that using the
  203.               magic functions @Exit or @Quit you  can  force  a  direct  exit,
  204.               bypassing any confirmation.
  205.  
  206.        -[no]debug
  207.               Show  information  about the loading process. Very useful to pin
  208.               down problems with your configuration files or  to  get  details
  209.               about session restores.
  210.  
  211.        -[no]deep_reload
  212.               IPython  can use the deep_reload module which reloads changes in
  213.               modules recursively (it replaces the reload() function,  so  you
  214.               don't need to change anything to use it). deep_reload() forces a
  215.               full reload of modules whose code may have  changed,  which  the
  216.               default reload() function does not.
  217.  
  218.               When  deep_reload  is off, IPython will use the normal reload(),
  219.               but deep_reload will still be available as dreload(). This  fea-
  220.               ture  is  off  by default [which means that you have both normal
  221.               reload() and dreload()].
  222.  
  223.        -editor <name>
  224.               Which editor to use with the @edit command. By default,  IPython
  225.               will  honor  your EDITOR environment variable (if not set, vi is
  226.               the Unix default and notepad the Windows one). Since this editor
  227.               is  invoked on the fly by IPython and is meant for editing small
  228.               code snippets, you may want to use a small,  lightweight  editor
  229.               here (in case your default EDITOR is something like Emacs).
  230.  
  231.        -ipythondir <name>
  232.               The  name  of  your  IPython configuration directory IPYTHONDIR.
  233.               This can also be  specified  through  the  environment  variable
  234.               IPYTHONDIR.
  235.  
  236.        -log|l Generate  a log file of all input. The file is named
  237.               ipython_log.py in your current directory (which prevents logs
  238.               from multiple IPython sessions from trampling each other). You
  239.               can use this to later restore a session by loading your logfile
  240.               as a file to be executed with option -logplay (see below).
  241.  
  242.        -logfile|lf
  243.               Specify the name of your logfile.
  244.  
  245.        -logplay|lp
  246.               Replay  a previous log. For restoring a session as close as pos-
  247.               sible to the state you left it in, use this option  (don't  just
  248.               run the logfile). With -logplay, IPython will try to reconstruct
  249.               the previous working environment in full, not just  execute  the
  250.               commands in the logfile.
  251.               When  a  session is restored, logging is automatically turned on
  252.               again with the name of the logfile it was invoked  with  (it  is
  253.               read  from the log header). So once you've turned logging on for
  254.               a session, you can quit IPython and reload it as many  times  as
  255.               you  want  and  it  will continue to log its history and restore
  256.               from the beginning every time.
  257.  
  258.               Caveats: there are limitations in this option. The history vari-
  259.               ables  _i*,_* and _dh don't get restored properly. In the future
  260.               we will try to implement full  session  saving  by  writing  and
  261.               retrieving  a failed because of inherent limitations of Python's
  262.               Pickle module, so this may have to wait.
  263.  
  264.        -[no]messages
  265.               Print messages which IPython collects about its startup  process
  266.               (default on).
  267.  
  268.        -[no]pdb
  269.               Automatically  call the pdb debugger after every uncaught excep-
  270.               tion. If you are used to debugging  using  pdb,  this  puts  you
  271.               automatically  inside of it after any call (either in IPython or
  272.               in code called by it) which triggers  an  exception  which  goes
  273.               uncaught.
  274.  
  275.        -[no]pprint
  276.               IPython  can  optionally  use the pprint (pretty printer) module
  277.               for displaying results. pprint tends to give a nicer display  of
  278.               nested  data structures. If you like it, you can turn it on per-
  279.               manently in your config file (default off).
  280.  
  281.        -profile|p <name>
  282.               Assume that your config file is ipythonrc-<name> (looks in  cur-
  283.               rent dir first, then in IPYTHONDIR). This is a quick way to keep
  284.               and load multiple config files for different  tasks,  especially
  285.               if  you  use  the include option of config files. You can keep a
  286.               basic IPYTHONDIR/ipythonrc file and then have  other  'profiles'
  287.               which  include  this  one  and  load extra things for particular
  288.               tasks. For example:
  289.  
  290.               1) $HOME/.ipython/ipythonrc : load basic things you always want.
  291.               2)  $HOME/.ipython/ipythonrc-math  :  load  (1)  and basic math-
  292.               related modules.
  293.               3) $HOME/.ipython/ipythonrc-numeric : load (1) and  Numeric  and
  294.               plotting modules.
  295.  
  296.               Since  it is possible to create an endless loop by having circu-
  297.               lar file inclusions, IPython will stop if it reaches  15  recur-
  298.               sive inclusions.
  299.  
  300.        -prompt_in1|pi1 <string>
  301.               Specify  the string used for input prompts. Note that if you are
  302.               using numbered prompts, the number is represented with a '\\#' in
  303.               the  string.  Don't forget to quote strings with spaces embedded
  304.               in them. Default: 'In [\\#]: '.
  305.  
  306.               Most bash-like  escapes  can  be  used  to  customize  IPython's
  307.               prompts, as well as a few additional ones which are IPython-spe-
  308.               cific.  All valid prompt escapes are described in detail in  the
  309.               Customization section of the IPython HTML/PDF manual.
  310.  
  311.        -prompt_in2|pi2 <string>
  312.               Similar to the previous option, but used for the continuation
  313.               prompts. The special sequence '\\D' is similar to '\\#', but with
  314.               all digits replaced dots (so you can have your continuation
  315.               prompt aligned with your input prompt).  Default: ' .\\D.: '
  316.               (note three spaces at the start for alignment with 'In [\\#]').
  317.  
  318.        -prompt_out|po <string>
  319.               String   used   for  output  prompts,  also  uses  numbers  like
  320.               prompt_in1.  Default: 'Out[\\#]:'.
  321.  
  322.        -quick Start in bare bones mode (no config file loaded).
  323.  
  324.        -rcfile <name>
  325.               Name of your  IPython  resource  configuration  file.   normally
  326.               IPython    loads   ipythonrc   (from   current   directory)   or
  327.               IPYTHONDIR/ipythonrc.  If the loading of your config file fails,
  328.               IPython  starts  with  a  bare  bones  configuration (no modules
  329.               loaded at all).
  330.  
  331.        -[no]readline
  332.               Use the readline library, which is needed to support  name  com-
  333.               pletion  and  command history, among other things. It is enabled
  334.               by default, but may cause  problems  for  users  of  X/Emacs  in
  335.               Python comint or shell buffers.
  336.  
  337.               Note  that  emacs 'eterm' buffers (opened with M-x term) support
  338.               IPython's readline and syntax coloring fine, only  'emacs'  (M-x
  339.               shell and C-c !)  buffers do not.
  340.  
  341.        -screen_length|sl <n>
  342.               Number  of lines of your screen.  This is used to control print-
  343.               ing of very long strings.  Strings longer than  this  number  of
  344.               lines  will be sent through a pager instead of directly printed.
  345.  
  346.               The default value for this is 0, which means IPython will  auto-
  347.               detect  your  screen  size  every time it needs to print certain
  348.               potentially long strings (this doesn't change  the  behavior  of
  349.               the  'print'  keyword,  it's  only triggered internally). If for
  350.               some reason this isn't working well (it needs  curses  support),
  351.               specify it yourself. Otherwise don't change the default.
  352.  
  353.        -separate_in|si <string>
  354.               Separator before input prompts.  Default '0.
  355.  
  356.        -separate_out|so <string>
  357.               Separator before output prompts.  Default: 0 (nothing).
  358.  
  359.        -separate_out2|so2 <string>
  360.               Separator after output prompts.  Default: 0 (nothing).
  361.  
  362.        -nosep Shorthand for '-separate_in 0 -separate_out 0 -separate_out2 0'.
  363.               Simply removes all input/output separators.
  364.  
  365.        -upgrade
  366.               Allows you to upgrade your  IPYTHONDIR  configuration  when  you
  367.               install  a  new  version  of  IPython.   Since  new versions may
  368.               include new command lines options or example files, this  copies
  369.               updated ipythonrc-type files.  However, it backs up (with a .old
  370.               extension) all files which it overwrites so that you  can  merge
  371.               back any custimizations you might have in your personal files.
  372.  
  373.        -Version
  374.               Print version information and exit.
  375.  
  376.        -wxversion <string>
  377.               Select a specific version of wxPython (used in conjunction with
  378.               -wthread). Requires the wxversion module, part of recent
  379.               wxPython distributions.
  380.  
  381.        -xmode <modename>
  382.               Mode  for  exception reporting.  The valid modes are Plain, Con-
  383.               text, and Verbose.
  384.  
  385.               - Plain: similar to python's normal traceback printing.
  386.  
  387.               - Context: prints 5 lines of context  source  code  around  each
  388.               line in the traceback.
  389.  
  390.               - Verbose: similar to Context, but additionally prints the vari-
  391.               ables currently visible where the exception happened (shortening
  392.               their  strings if too long).  This can potentially be very slow,
  393.               if you happen to have a huge data structure whose string  repre-
  394.               sentation  is  complex  to compute.  Your computer may appear to
  395.               freeze for a while with cpu usage at 100%.  If this occurs,  you
  396.               can cancel the traceback with Ctrl-C (maybe hitting it more than
  397.               once).
  398.  
  399.  
  400. EMBEDDING
  401.        It is possible to start an IPython instance inside your own Python pro-
  402.        grams.  In the documentation example files there are some illustrations
  403.        on how to do this.
  404.  
  405.        This feature allows you to evalutate  dynamically  the  state  of  your
  406.        code,  operate  with  your  variables, analyze them, etc.  Note however
  407.        that any changes you make to values while in the shell do NOT propagate
  408.        back  to  the running code, so it is safe to modify your values because
  409.        you won't break your code in bizarre ways by doing so.
  410. """
  411. cmd_line_usage = __doc__
  412. interactive_usage = '\nIPython -- An enhanced Interactive Python\n=========================================\n\nIPython offers a combination of convenient shell features, special commands\nand a history mechanism for both input (command history) and output (results\ncaching, similar to Mathematica). It is intended to be a fully compatible\nreplacement for the standard Python interpreter, while offering vastly\nimproved functionality and flexibility.\n\nAt your system command line, type \'ipython -help\' to see the command line\noptions available. This document only describes interactive features.\n\nWarning: IPython relies on the existence of a global variable called __IP which\ncontrols the shell itself. If you redefine __IP to anything, bizarre behavior\nwill quickly occur.\n\nMAIN FEATURES\n\n* Access to the standard Python help. As of Python 2.1, a help system is\n  available with access to object docstrings and the Python manuals. Simply\n  type \'help\' (no quotes) to access it.\n\n* Magic commands: type %magic for information on the magic subsystem.\n\n* System command aliases, via the %alias command or the ipythonrc config file.\n\n* Dynamic object information:\n\n  Typing ?word or word? prints detailed information about an object.  If\n  certain strings in the object are too long (docstrings, code, etc.) they get\n  snipped in the center for brevity.\n\n  Typing ??word or word?? gives access to the full information without\n  snipping long strings. Long strings are sent to the screen through the less\n  pager if longer than the screen, printed otherwise.\n\n  The ?/?? system gives access to the full source code for any object (if\n  available), shows function prototypes and other useful information.\n\n  If you just want to see an object\'s docstring, type \'%pdoc object\' (without\n  quotes, and without % if you have automagic on).\n\n  Both %pdoc and ?/?? give you access to documentation even on things which are\n  not explicitely defined. Try for example typing {}.get? or after import os,\n  type os.path.abspath??. The magic functions %pdef, %source and %file operate\n  similarly.\n\n* Completion in the local namespace, by typing TAB at the prompt.\n\n  At any time, hitting tab will complete any available python commands or\n  variable names, and show you a list of the possible completions if there\'s\n  no unambiguous one. It will also complete filenames in the current directory.\n\n  This feature requires the readline and rlcomplete modules, so it won\'t work\n  if your Python lacks readline support (such as under Windows).\n\n* Search previous command history in two ways (also requires readline):\n\n  - Start typing, and then use Ctrl-p (previous,up) and Ctrl-n (next,down) to\n  search through only the history items that match what you\'ve typed so\n  far. If you use Ctrl-p/Ctrl-n at a blank prompt, they just behave like\n  normal arrow keys.\n\n  - Hit Ctrl-r: opens a search prompt. Begin typing and the system searches\n  your history for lines that match what you\'ve typed so far, completing as\n  much as it can.\n\n* Persistent command history across sessions (readline required).\n\n* Logging of input with the ability to save and restore a working session.\n  \n* System escape with !. Typing !ls will run \'ls\' in the current directory.\n\n* The reload command does a \'deep\' reload of a module: changes made to the\n  module since you imported will actually be available without having to exit.\n\n* Verbose and colored exception traceback printouts. See the magic xmode and\n  xcolor functions for details (just type %magic).\n\n* Input caching system:\n\n  IPython offers numbered prompts (In/Out) with input and output caching. All\n  input is saved and can be retrieved as variables (besides the usual arrow\n  key recall).\n\n  The following GLOBAL variables always exist (so don\'t overwrite them!):\n  _i: stores previous input.\n  _ii: next previous.\n  _iii: next-next previous.\n  _ih : a list of all input _ih[n] is the input from line n.\n\n  Additionally, global variables named _i<n> are dynamically created (<n>\n  being the prompt counter), such that _i<n> == _ih[<n>]\n\n  For example, what you typed at prompt 14 is available as _i14 and _ih[14].\n\n  You can create macros which contain multiple input lines from this history,\n  for later re-execution, with the %macro function.\n\n  The history function %hist allows you to see any part of your input history\n  by printing a range of the _i variables. Note that inputs which contain\n  magic functions (%) appear in the history with a prepended comment. This is\n  because they aren\'t really valid Python code, so you can\'t exec them.\n\n* Output caching system:\n\n  For output that is returned from actions, a system similar to the input\n  cache exists but using _ instead of _i. Only actions that produce a result\n  (NOT assignments, for example) are cached. If you are familiar with\n  Mathematica, IPython\'s _ variables behave exactly like Mathematica\'s %\n  variables.\n\n  The following GLOBAL variables always exist (so don\'t overwrite them!):\n  _ (one underscore): previous output.\n  __ (two underscores): next previous.\n  ___ (three underscores): next-next previous.\n\n  Global variables named _<n> are dynamically created (<n> being the prompt\n  counter), such that the result of output <n> is always available as _<n>.\n\n  Finally, a global dictionary named _oh exists with entries for all lines\n  which generated output.\n\n* Directory history:\n\n  Your history of visited directories is kept in the global list _dh, and the\n  magic %cd command can be used to go to any entry in that list.\n\n* Auto-parentheses and auto-quotes (adapted from Nathan Gray\'s LazyPython)\n\n    1. Auto-parentheses\n        Callable objects (i.e. functions, methods, etc) can be invoked like\n        this (notice the commas between the arguments):\n            >>> callable_ob arg1, arg2, arg3\n        and the input will be translated to this:\n            --> callable_ob(arg1, arg2, arg3)\n        You can force auto-parentheses by using \'/\' as the first character\n        of a line.  For example:\n            >>> /globals             # becomes \'globals()\'\n        Note that the \'/\' MUST be the first character on the line!  This\n        won\'t work:\n            >>> print /globals    # syntax error\n            \n        In most cases the automatic algorithm should work, so you should\n        rarely need to explicitly invoke /. One notable exception is if you\n        are trying to call a function with a list of tuples as arguments (the\n        parenthesis will confuse IPython):\n            In [1]: zip (1,2,3),(4,5,6)  # won\'t work\n        but this will work:\n            In [2]: /zip (1,2,3),(4,5,6)\n            ------> zip ((1,2,3),(4,5,6))\n            Out[2]= [(1, 4), (2, 5), (3, 6)]        \n\n        IPython tells you that it has altered your command line by\n        displaying the new command line preceded by -->.  e.g.:\n            In [18]: callable list\n            -------> callable (list) \n\n    2. Auto-Quoting\n        You can force auto-quoting of a function\'s arguments by using \',\' as\n        the first character of a line.  For example:\n            >>> ,my_function /home/me   # becomes my_function("/home/me")\n\n        If you use \';\' instead, the whole argument is quoted as a single\n        string (while \',\' splits on whitespace):\n            >>> ,my_function a b c   # becomes my_function("a","b","c")\n            >>> ;my_function a b c   # becomes my_function("a b c")\n\n        Note that the \',\' MUST be the first character on the line!  This\n        won\'t work:\n            >>> x = ,my_function /home/me    # syntax error\n'
  413. quick_reference = '\nIPython -- An enhanced Interactive Python - Quick Reference Card\n================================================================\n\nobj?, obj??      : Get help, or more help for object (also works as\n                   ?obj, ??obj).\n?foo.*abc*       : List names in \'foo\' containing \'abc\' in them.\n%magic           : Information about IPython\'s \'magic\' % functions.\n\nMagic functions are prefixed by %, and typically take their arguments without\nparentheses, quotes or even commas for convenience.\n \nExample magic function calls:\n\n%alias d ls -F   : \'d\' is now an alias for \'ls -F\'\nalias d ls -F    : Works if \'alias\' not a python name\nalist = %alias   : Get list of aliases to \'alist\'\ncd /usr/share    : Obvious. cd -<tab> to choose from visited dirs.\n%cd??            : See help AND source for magic %cd\n\nSystem commands:\n    \n!cp a.txt b/     : System command escape, calls os.system()\ncp a.txt b/      : after %rehashx, most system commands work without !\ncp ${f}.txt $bar : Variable expansion in magics and system commands\nfiles = !ls /usr : Capture sytem command output\nfiles.s, files.l, files.n: "a b c", [\'a\',\'b\',\'c\'], \'a\\nb\\nc\'\n\nHistory:\n\n_i, _ii, _iii    : Previous, next previous, next next previous input\n_i4, _ih[2:5]    : Input history line 4, lines 2-4\nexec _i81        : Execute input history line #81 again\n%rep 81          : Edit input history line #81        \n_, __, ___       : previous, next previous, next next previous output\n_dh              : Directory history\n_oh              : Output history\n%hist            : Command history. \'%hist -g foo\' search history for \'foo\'\n\nAutocall:\n\nf 1,2            : f(1,2)\n/f 1,2           : f(1,2) (forced autoparen)\n,f 1 2           : f("1","2")\n;f 1 2           : f("1 2")\n\nRemember: TAB completion works in many contexts, not just file names\nor python names.\n\nThe following magic functions are currently available:\n\n'
  414.