All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # Configuration file for ipython.
3 #------------------------------------------------------------------------------
4 # InteractiveShellApp(Configurable) configuration
5 #------------------------------------------------------------------------------
6 ## A Mixin for applications that start InteractiveShell instances.
8 # Provides configurables for loading extensions and executing files
9 # as part of configuring a Shell environment.
11 # The following methods should be called by the :meth:`initialize` method
15 # - :meth:`init_shell` (to be implemented by the subclass)
16 # - :meth:`init_gui_pylab`
17 # - :meth:`init_extensions`
20 ## Execute the given command string.
22 # c.InteractiveShellApp.code_to_run = ''
24 ## Run the file referenced by the PYTHONSTARTUP environment
25 # variable at IPython startup.
27 # c.InteractiveShellApp.exec_PYTHONSTARTUP = True
29 ## List of files to run at IPython startup.
31 # c.InteractiveShellApp.exec_files = []
33 ## lines of code to run at IPython startup.
35 # c.InteractiveShellApp.exec_lines = []
37 ## A list of dotted module names of IPython extensions to load.
39 # c.InteractiveShellApp.extensions = []
41 ## DEPRECATED. Dotted module name of a single extra IPython extension to load.
43 # Only one extension can be added this way.
45 # Only used with traitlets < 5.0, plural extra_extensions list is used in
48 # c.InteractiveShellApp.extra_extension = ''
50 ## Dotted module name(s) of one or more IPython extensions to load.
52 # For specifying extra extensions to load on the command-line.
54 # .. versionadded:: 7.10
56 # c.InteractiveShellApp.extra_extensions = []
60 # c.InteractiveShellApp.file_to_run = ''
62 ## Enable GUI event loop integration with any of ('asyncio', 'glut', 'gtk',
63 # 'gtk2', 'gtk3', 'osx', 'pyglet', 'qt', 'qt4', 'qt5', 'tk', 'wx', 'gtk2',
65 # Choices: any of ['asyncio', 'glut', 'gtk', 'gtk2', 'gtk3', 'osx', 'pyglet', 'qt', 'qt4', 'qt5', 'tk', 'wx', 'gtk2', 'qt4'] (case-insensitive) or None
67 # c.InteractiveShellApp.gui = None
69 ## Should variables loaded at startup (by startup files, exec_lines, etc.)
70 # be hidden from tools like %who?
72 # c.InteractiveShellApp.hide_initial_ns = True
74 ## If True, IPython will not add the current working directory to sys.path.
75 # When False, the current working directory is added to sys.path, allowing imports
76 # of modules defined in the current directory.
78 # c.InteractiveShellApp.ignore_cwd = False
80 ## Configure matplotlib for interactive use with
81 # the default matplotlib backend.
82 # Choices: any of ['auto', 'agg', 'gtk', 'gtk3', 'inline', 'ipympl', 'nbagg', 'notebook', 'osx', 'pdf', 'ps', 'qt', 'qt4', 'qt5', 'svg', 'tk', 'widget', 'wx'] (case-insensitive) or None
84 # c.InteractiveShellApp.matplotlib = None
86 ## Run the module as a script.
88 # c.InteractiveShellApp.module_to_run = ''
90 ## Pre-load matplotlib and numpy for interactive use,
91 # selecting a particular matplotlib backend and loop integration.
92 # Choices: any of ['auto', 'agg', 'gtk', 'gtk3', 'inline', 'ipympl', 'nbagg', 'notebook', 'osx', 'pdf', 'ps', 'qt', 'qt4', 'qt5', 'svg', 'tk', 'widget', 'wx'] (case-insensitive) or None
94 # c.InteractiveShellApp.pylab = None
96 ## If true, IPython will populate the user namespace with numpy, pylab, etc.
97 # and an ``import *`` is done from numpy and pylab, when using pylab mode.
99 # When False, pylab mode should not import any names into the user
102 # c.InteractiveShellApp.pylab_import_all = True
104 ## Reraise exceptions encountered loading IPython extensions?
106 # c.InteractiveShellApp.reraise_ipython_extension_failures = False
108 #------------------------------------------------------------------------------
109 # Application(SingletonConfigurable) configuration
110 #------------------------------------------------------------------------------
111 ## This is an application.
113 ## The date format used by logging formatters for %(asctime)s
114 # Default: '%Y-%m-%d %H:%M:%S'
115 # c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'
117 ## The Logging format template
118 # Default: '[%(name)s]%(highlevel)s %(message)s'
119 # c.Application.log_format = '[%(name)s]%(highlevel)s %(message)s'
121 ## Set the log level by value or name.
122 # Choices: any of [0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL']
124 # c.Application.log_level = 30
126 ## Instead of starting the Application, dump configuration to stdout
128 # c.Application.show_config = False
130 ## Instead of starting the Application, dump configuration to stdout (as JSON)
132 # c.Application.show_config_json = False
134 #------------------------------------------------------------------------------
135 # BaseIPythonApplication(Application) configuration
136 #------------------------------------------------------------------------------
137 ## IPython: an enhanced interactive Python shell.
139 ## Whether to create profile dir if it doesn't exist
141 # c.BaseIPythonApplication.auto_create = False
143 ## Whether to install the default config files into the profile dir.
144 # If a new profile is being created, and IPython contains config files for that
145 # profile, then they will be staged into the new directory. Otherwise,
146 # default config files will be automatically generated.
148 # c.BaseIPythonApplication.copy_config_files = False
150 ## Path to an extra config file to load.
152 # If specified, load this config file in addition to any other IPython
155 # c.BaseIPythonApplication.extra_config_file = ''
157 ## The name of the IPython directory. This directory is used for logging
158 # configuration (through profiles), history storage, etc. The default is usually
159 # $HOME/.ipython. This option can also be specified through the environment
160 # variable IPYTHONDIR.
162 # c.BaseIPythonApplication.ipython_dir = ''
164 ## The date format used by logging formatters for %(asctime)s
165 # See also: Application.log_datefmt
166 # c.BaseIPythonApplication.log_datefmt = '%Y-%m-%d %H:%M:%S'
168 ## The Logging format template
169 # See also: Application.log_format
170 # c.BaseIPythonApplication.log_format = '[%(name)s]%(highlevel)s %(message)s'
172 ## Set the log level by value or name.
173 # See also: Application.log_level
174 # c.BaseIPythonApplication.log_level = 30
176 ## Whether to overwrite existing config files when copying
178 # c.BaseIPythonApplication.overwrite = False
180 ## The IPython profile to use.
182 # c.BaseIPythonApplication.profile = 'default'
184 ## Instead of starting the Application, dump configuration to stdout
185 # See also: Application.show_config
186 # c.BaseIPythonApplication.show_config = False
188 ## Instead of starting the Application, dump configuration to stdout (as JSON)
189 # See also: Application.show_config_json
190 # c.BaseIPythonApplication.show_config_json = False
192 ## Create a massive crash report when IPython encounters what may be an
193 # internal error. The default is to append a short message to the
196 # c.BaseIPythonApplication.verbose_crash = False
198 #------------------------------------------------------------------------------
199 # TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp) configuration
200 #------------------------------------------------------------------------------
201 ## Execute the given command string.
202 # See also: InteractiveShellApp.code_to_run
203 # c.TerminalIPythonApp.code_to_run = ''
205 ## Whether to install the default config files into the profile dir.
206 # See also: BaseIPythonApplication.copy_config_files
207 # c.TerminalIPythonApp.copy_config_files = False
209 ## Whether to display a banner upon starting IPython.
211 # c.TerminalIPythonApp.display_banner = True
213 ## Run the file referenced by the PYTHONSTARTUP environment
214 # See also: InteractiveShellApp.exec_PYTHONSTARTUP
215 # c.TerminalIPythonApp.exec_PYTHONSTARTUP = True
217 ## List of files to run at IPython startup.
218 # See also: InteractiveShellApp.exec_files
219 # c.TerminalIPythonApp.exec_files = []
221 ## lines of code to run at IPython startup.
222 # See also: InteractiveShellApp.exec_lines
223 # c.TerminalIPythonApp.exec_lines = []
225 ## A list of dotted module names of IPython extensions to load.
226 # See also: InteractiveShellApp.extensions
227 # c.TerminalIPythonApp.extensions = []
229 ## Path to an extra config file to load.
230 # See also: BaseIPythonApplication.extra_config_file
231 # c.TerminalIPythonApp.extra_config_file = ''
234 # See also: InteractiveShellApp.extra_extension
235 # c.TerminalIPythonApp.extra_extension = ''
238 # See also: InteractiveShellApp.extra_extensions
239 # c.TerminalIPythonApp.extra_extensions = []
242 # See also: InteractiveShellApp.file_to_run
243 # c.TerminalIPythonApp.file_to_run = ''
245 ## If a command or file is given via the command-line,
246 # e.g. 'ipython foo.py', start an interactive shell after executing the
249 # c.TerminalIPythonApp.force_interact = False
251 ## Enable GUI event loop integration with any of ('asyncio', 'glut', 'gtk',
252 # 'gtk2', 'gtk3', 'osx', 'pyglet', 'qt', 'qt4', 'qt5', 'tk', 'wx', 'gtk2',
254 # See also: InteractiveShellApp.gui
255 # c.TerminalIPythonApp.gui = None
257 ## Should variables loaded at startup (by startup files, exec_lines, etc.)
258 # See also: InteractiveShellApp.hide_initial_ns
259 # c.TerminalIPythonApp.hide_initial_ns = True
261 ## If True, IPython will not add the current working directory to sys.path.
262 # See also: InteractiveShellApp.ignore_cwd
263 # c.TerminalIPythonApp.ignore_cwd = False
265 ## Class to use to instantiate the TerminalInteractiveShell object. Useful for
267 # Default: 'IPython.terminal.interactiveshell.TerminalInteractiveShell'
268 # c.TerminalIPythonApp.interactive_shell_class = 'IPython.terminal.interactiveshell.TerminalInteractiveShell'
271 # See also: BaseIPythonApplication.ipython_dir
272 # c.TerminalIPythonApp.ipython_dir = ''
274 ## The date format used by logging formatters for %(asctime)s
275 # See also: Application.log_datefmt
276 # c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
278 ## The Logging format template
279 # See also: Application.log_format
280 # c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
282 ## Set the log level by value or name.
283 # See also: Application.log_level
284 # c.TerminalIPythonApp.log_level = 30
286 ## Configure matplotlib for interactive use with
287 # See also: InteractiveShellApp.matplotlib
288 # c.TerminalIPythonApp.matplotlib = None
290 ## Run the module as a script.
291 # See also: InteractiveShellApp.module_to_run
292 # c.TerminalIPythonApp.module_to_run = ''
294 ## Whether to overwrite existing config files when copying
295 # See also: BaseIPythonApplication.overwrite
296 # c.TerminalIPythonApp.overwrite = False
298 ## The IPython profile to use.
299 # See also: BaseIPythonApplication.profile
300 # c.TerminalIPythonApp.profile = 'default'
302 ## Pre-load matplotlib and numpy for interactive use,
303 # See also: InteractiveShellApp.pylab
304 # c.TerminalIPythonApp.pylab = None
306 ## If true, IPython will populate the user namespace with numpy, pylab, etc.
307 # See also: InteractiveShellApp.pylab_import_all
308 # c.TerminalIPythonApp.pylab_import_all = True
310 ## Start IPython quickly by skipping the loading of config files.
312 # c.TerminalIPythonApp.quick = False
314 ## Reraise exceptions encountered loading IPython extensions?
315 # See also: InteractiveShellApp.reraise_ipython_extension_failures
316 # c.TerminalIPythonApp.reraise_ipython_extension_failures = False
318 ## Instead of starting the Application, dump configuration to stdout
319 # See also: Application.show_config
320 # c.TerminalIPythonApp.show_config = False
322 ## Instead of starting the Application, dump configuration to stdout (as JSON)
323 # See also: Application.show_config_json
324 # c.TerminalIPythonApp.show_config_json = False
326 ## Create a massive crash report when IPython encounters what may be an
327 # See also: BaseIPythonApplication.verbose_crash
328 # c.TerminalIPythonApp.verbose_crash = False
330 #------------------------------------------------------------------------------
331 # InteractiveShell(SingletonConfigurable) configuration
332 #------------------------------------------------------------------------------
333 ## An enhanced, interactive shell for Python.
335 ## 'all', 'last', 'last_expr' or 'none', 'last_expr_or_assign' specifying which
336 # nodes should be run interactively (displaying output from expressions).
337 # Choices: any of ['all', 'last', 'last_expr', 'none', 'last_expr_or_assign']
338 # Default: 'last_expr'
339 # c.InteractiveShell.ast_node_interactivity = 'last_expr'
341 ## A list of ast.NodeTransformer subclass instances, which will be applied to
342 # user input before code is run.
344 # c.InteractiveShell.ast_transformers = []
346 ## Automatically run await statement in the top level repl.
348 # c.InteractiveShell.autoawait = True
350 ## Make IPython automatically call any callable object even if you didn't type
351 # explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
352 # The value can be '0' to disable the feature, '1' for 'smart' autocall, where
353 # it is not applied if there are no more arguments on the line, and '2' for
354 # 'full' autocall, where all callable objects are automatically called (even if
355 # no arguments are present).
356 # Choices: any of [0, 1, 2]
358 # c.InteractiveShell.autocall = 0
360 ## Autoindent IPython code entered interactively.
362 # c.InteractiveShell.autoindent = True
364 ## Enable magic commands to be called without the leading %.
366 # c.InteractiveShell.automagic = True
368 ## The part of the banner to be printed before the profile
369 # Default: "Python 3.9.7 (default, Sep 3 2021, 06:18:44) \nType 'copyright', 'credits' or 'license' for more information\nIPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.\n"
370 # c.InteractiveShell.banner1 = "Python 3.9.7 (default, Sep 3 2021, 06:18:44) \nType 'copyright', 'credits' or 'license' for more information\nIPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.\n"
372 ## The part of the banner to be printed after the profile
374 # c.InteractiveShell.banner2 = ''
376 ## Set the size of the output cache. The default is 1000, you can change it
377 # permanently in your config file. Setting it to 0 completely disables the
378 # caching system, and the minimum value accepted is 3 (if you provide a value
379 # less than 3, it is reset to 0 and a warning is issued). This limit is defined
380 # because otherwise you'll spend more time re-flushing a too small cache than
383 # c.InteractiveShell.cache_size = 1000
385 ## Use colors for displaying information about objects. Because this information
386 # is passed through a pager (like 'less'), and some pagers get confused with
387 # color codes, this capability can be turned off.
389 # c.InteractiveShell.color_info = True
391 ## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
392 # Choices: any of ['Neutral', 'NoColor', 'LightBG', 'Linux'] (case-insensitive)
394 # c.InteractiveShell.colors = 'Neutral'
397 # c.InteractiveShell.debug = False
399 ## Don't call post-execute functions that have failed in the past.
401 # c.InteractiveShell.disable_failing_post_execute = False
403 ## If True, anything that would be passed to the pager
404 # will be displayed as regular output instead.
406 # c.InteractiveShell.display_page = False
408 ## (Provisional API) enables html representation in mime bundles sent to pagers.
410 # c.InteractiveShell.enable_html_pager = False
412 ## Total length of command history
414 # c.InteractiveShell.history_length = 10000
416 ## The number of saved history entries to be loaded into the history buffer at
419 # c.InteractiveShell.history_load_length = 1000
422 # c.InteractiveShell.ipython_dir = ''
424 ## Start logging to the given file in append mode. Use `logfile` to specify a log
425 # file to **overwrite** logs to.
427 # c.InteractiveShell.logappend = ''
429 ## The name of the logfile to use.
431 # c.InteractiveShell.logfile = ''
433 ## Start logging to the default log file in overwrite mode. Use `logappend` to
434 # specify a log file to **append** logs to.
436 # c.InteractiveShell.logstart = False
438 ## Select the loop runner that will be used to execute top-level asynchronous
440 # Default: 'IPython.core.interactiveshell._asyncio_runner'
441 # c.InteractiveShell.loop_runner = 'IPython.core.interactiveshell._asyncio_runner'
443 # Choices: any of [0, 1, 2]
445 # c.InteractiveShell.object_info_string_level = 0
447 ## Automatically call the pdb debugger after every exception.
449 # c.InteractiveShell.pdb = False
451 ## Deprecated since IPython 4.0 and ignored since 5.0, set
452 # TerminalInteractiveShell.prompts object directly.
453 # Default: 'In [\\#]: '
454 # c.InteractiveShell.prompt_in1 = 'In [\\#]: '
456 ## Deprecated since IPython 4.0 and ignored since 5.0, set
457 # TerminalInteractiveShell.prompts object directly.
458 # Default: ' .\\D.: '
459 # c.InteractiveShell.prompt_in2 = ' .\\D.: '
461 ## Deprecated since IPython 4.0 and ignored since 5.0, set
462 # TerminalInteractiveShell.prompts object directly.
463 # Default: 'Out[\\#]: '
464 # c.InteractiveShell.prompt_out = 'Out[\\#]: '
466 ## Deprecated since IPython 4.0 and ignored since 5.0, set
467 # TerminalInteractiveShell.prompts object directly.
469 # c.InteractiveShell.prompts_pad_left = True
472 # c.InteractiveShell.quiet = False
475 # c.InteractiveShell.separate_in = '\n'
478 # c.InteractiveShell.separate_out = ''
481 # c.InteractiveShell.separate_out2 = ''
483 ## Show rewritten input, e.g. for autocall.
485 # c.InteractiveShell.show_rewritten_input = True
487 ## Enables rich html representation of docstrings. (This requires the docrepr
490 # c.InteractiveShell.sphinxify_docstring = False
493 # c.InteractiveShell.wildcards_case_sensitive = True
495 ## Switch modes for the IPython exception handlers.
496 # Choices: any of ['Context', 'Plain', 'Verbose', 'Minimal'] (case-insensitive)
498 # c.InteractiveShell.xmode = 'Context'
500 #------------------------------------------------------------------------------
501 # TerminalInteractiveShell(InteractiveShell) configuration
502 #------------------------------------------------------------------------------
504 # See also: InteractiveShell.ast_node_interactivity
505 # c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr'
508 # See also: InteractiveShell.ast_transformers
509 # c.TerminalInteractiveShell.ast_transformers = []
512 # See also: InteractiveShell.autoawait
513 # c.TerminalInteractiveShell.autoawait = True
516 # See also: InteractiveShell.autocall
517 # c.TerminalInteractiveShell.autocall = 0
519 ## Autoformatter to reformat Terminal code. Can be `'black'` or `None`
521 # c.TerminalInteractiveShell.autoformatter = None
524 # See also: InteractiveShell.autoindent
525 # c.TerminalInteractiveShell.autoindent = True
528 # See also: InteractiveShell.automagic
529 # c.TerminalInteractiveShell.automagic = True
531 ## The part of the banner to be printed before the profile
532 # See also: InteractiveShell.banner1
533 # c.TerminalInteractiveShell.banner1 = "Python 3.9.7 (default, Sep 3 2021, 06:18:44) \nType 'copyright', 'credits' or 'license' for more information\nIPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.\n"
535 ## The part of the banner to be printed after the profile
536 # See also: InteractiveShell.banner2
537 # c.TerminalInteractiveShell.banner2 = ''
540 # See also: InteractiveShell.cache_size
541 # c.TerminalInteractiveShell.cache_size = 1000
544 # See also: InteractiveShell.color_info
545 # c.TerminalInteractiveShell.color_info = True
547 ## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
548 # See also: InteractiveShell.colors
549 # c.TerminalInteractiveShell.colors = 'Neutral'
551 ## Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
552 # Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
553 # direct exit without any confirmation.
555 # c.TerminalInteractiveShell.confirm_exit = True
557 # See also: InteractiveShell.debug
558 # c.TerminalInteractiveShell.debug = False
560 ## Don't call post-execute functions that have failed in the past.
561 # See also: InteractiveShell.disable_failing_post_execute
562 # c.TerminalInteractiveShell.disable_failing_post_execute = False
564 ## Options for displaying tab completions, 'column', 'multicolumn', and
565 # 'readlinelike'. These options are for `prompt_toolkit`, see `prompt_toolkit`
566 # documentation for more information.
567 # Choices: any of ['column', 'multicolumn', 'readlinelike']
568 # Default: 'multicolumn'
569 # c.TerminalInteractiveShell.display_completions = 'multicolumn'
571 ## If True, anything that would be passed to the pager
572 # See also: InteractiveShell.display_page
573 # c.TerminalInteractiveShell.display_page = False
575 ## Shortcut style to use at the prompt. 'vi' or 'emacs'.
577 # c.TerminalInteractiveShell.editing_mode = 'emacs'
579 ## Set the editor used by IPython (default to $EDITOR/vi/notepad).
580 # Default: '/usr/bin/vim'
581 # c.TerminalInteractiveShell.editor = '/usr/bin/vim'
583 ## Allows to enable/disable the prompt toolkit history search
585 # c.TerminalInteractiveShell.enable_history_search = True
588 # See also: InteractiveShell.enable_html_pager
589 # c.TerminalInteractiveShell.enable_html_pager = False
591 ## Enable vi (v) or Emacs (C-X C-E) shortcuts to open an external editor. This is
592 # in addition to the F2 binding, which is always enabled.
594 # c.TerminalInteractiveShell.extra_open_editor_shortcuts = False
596 ## Provide an alternative handler to be called when the user presses Return. This
597 # is an advanced option intended for debugging, which may be changed or removed
600 # c.TerminalInteractiveShell.handle_return = None
602 ## Highlight matching brackets.
604 # c.TerminalInteractiveShell.highlight_matching_brackets = True
606 ## The name or class of a Pygments style to use for syntax
607 # highlighting. To see available styles, run `pygmentize -L styles`.
608 # Default: traitlets.Undefined
609 # c.TerminalInteractiveShell.highlighting_style = traitlets.Undefined
611 ## Override highlighting format for specific tokens
613 # c.TerminalInteractiveShell.highlighting_style_overrides = {}
615 ## Total length of command history
616 # See also: InteractiveShell.history_length
617 # c.TerminalInteractiveShell.history_length = 10000
620 # See also: InteractiveShell.history_load_length
621 # c.TerminalInteractiveShell.history_load_length = 1000
623 # See also: InteractiveShell.ipython_dir
624 # c.TerminalInteractiveShell.ipython_dir = ''
627 # See also: InteractiveShell.logappend
628 # c.TerminalInteractiveShell.logappend = ''
631 # See also: InteractiveShell.logfile
632 # c.TerminalInteractiveShell.logfile = ''
635 # See also: InteractiveShell.logstart
636 # c.TerminalInteractiveShell.logstart = False
638 ## Select the loop runner that will be used to execute top-level asynchronous
640 # See also: InteractiveShell.loop_runner
641 # c.TerminalInteractiveShell.loop_runner = 'IPython.core.interactiveshell._asyncio_runner'
644 # c.TerminalInteractiveShell.mime_renderers = {}
646 ## Enable mouse support in the prompt (Note: prevents selecting text with the
649 # c.TerminalInteractiveShell.mouse_support = False
651 # See also: InteractiveShell.object_info_string_level
652 # c.TerminalInteractiveShell.object_info_string_level = 0
655 # See also: InteractiveShell.pdb
656 # c.TerminalInteractiveShell.pdb = False
658 ## Deprecated since IPython 4.0 and ignored since 5.0, set
659 # TerminalInteractiveShell.prompts object directly.
660 # See also: InteractiveShell.prompt_in1
661 # c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
663 ## Deprecated since IPython 4.0 and ignored since 5.0, set
664 # TerminalInteractiveShell.prompts object directly.
665 # See also: InteractiveShell.prompt_in2
666 # c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
668 ## Display the current vi mode (when using vi editing mode).
670 # c.TerminalInteractiveShell.prompt_includes_vi_mode = True
672 ## Deprecated since IPython 4.0 and ignored since 5.0, set
673 # TerminalInteractiveShell.prompts object directly.
674 # See also: InteractiveShell.prompt_out
675 # c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
677 ## Class used to generate Prompt token for prompt_toolkit
678 # Default: 'IPython.terminal.prompts.Prompts'
679 # c.TerminalInteractiveShell.prompts_class = 'IPython.terminal.prompts.Prompts'
681 ## Deprecated since IPython 4.0 and ignored since 5.0, set
682 # TerminalInteractiveShell.prompts object directly.
683 # See also: InteractiveShell.prompts_pad_left
684 # c.TerminalInteractiveShell.prompts_pad_left = True
686 # See also: InteractiveShell.quiet
687 # c.TerminalInteractiveShell.quiet = False
689 # See also: InteractiveShell.separate_in
690 # c.TerminalInteractiveShell.separate_in = '\n'
692 # See also: InteractiveShell.separate_out
693 # c.TerminalInteractiveShell.separate_out = ''
695 # See also: InteractiveShell.separate_out2
696 # c.TerminalInteractiveShell.separate_out2 = ''
698 ## Show rewritten input, e.g. for autocall.
699 # See also: InteractiveShell.show_rewritten_input
700 # c.TerminalInteractiveShell.show_rewritten_input = True
702 ## Use `raw_input` for the REPL, without completion and prompt colors.
704 # Useful when controlling IPython as a subprocess, and piping STDIN/OUT/ERR. Known usage are:
705 # IPython own testing machinery, and emacs inferior-shell integration through elpy.
707 # This mode default to `True` if the `IPY_TEST_SIMPLE_PROMPT`
708 # environment variable is set, or the current terminal is not a tty.
710 # c.TerminalInteractiveShell.simple_prompt = False
712 ## Number of line at the bottom of the screen to reserve for the tab completion
713 # menu, search history, ...etc, the height of these menus will at most this
714 # value. Increase it is you prefer long and skinny menus, decrease for short and
717 # c.TerminalInteractiveShell.space_for_menu = 6
720 # See also: InteractiveShell.sphinxify_docstring
721 # c.TerminalInteractiveShell.sphinxify_docstring = False
723 ## Automatically set the terminal title
725 # c.TerminalInteractiveShell.term_title = True
727 ## Customize the terminal title format. This is a python format string.
728 # Available substitutions are: {cwd}.
729 # Default: 'IPython: {cwd}'
730 # c.TerminalInteractiveShell.term_title_format = 'IPython: {cwd}'
732 ## Use 24bit colors instead of 256 colors in prompt highlighting. If your
733 # terminal supports true color, the following command should print 'TRUECOLOR'
734 # in orange: printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
736 # c.TerminalInteractiveShell.true_color = False
738 # See also: InteractiveShell.wildcards_case_sensitive
739 # c.TerminalInteractiveShell.wildcards_case_sensitive = True
741 ## Switch modes for the IPython exception handlers.
742 # See also: InteractiveShell.xmode
743 # c.TerminalInteractiveShell.xmode = 'Context'
745 #------------------------------------------------------------------------------
746 # HistoryAccessor(HistoryAccessorBase) configuration
747 #------------------------------------------------------------------------------
748 ## Access the history database without adding to it.
750 # This is intended for use by standalone history tools. IPython shells use
751 # HistoryManager, below, which is a subclass of this.
753 ## Options for configuring the SQLite connection
755 # These options are passed as keyword args to sqlite3.connect
756 # when establishing database connections.
758 # c.HistoryAccessor.connection_options = {}
760 ## enable the SQLite history
762 # set enabled=False to disable the SQLite history,
763 # in which case there will be no stored history, no SQLite connection,
764 # and no background saving thread. This may be necessary in some
765 # threaded environments where IPython is embedded.
767 # c.HistoryAccessor.enabled = True
769 ## Path to file to use for SQLite history database.
771 # By default, IPython will put the history database in the IPython
772 # profile directory. If you would rather share one history among
773 # profiles, you can set this value in each, so that they are consistent.
775 # Due to an issue with fcntl, SQLite is known to misbehave on some NFS
776 # mounts. If you see IPython hanging, try setting this to something on a
779 # ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite
781 # you can also use the specific value `:memory:` (including the colon
782 # at both end but not the back ticks), to avoid creating an history file.
784 # c.HistoryAccessor.hist_file = ''
786 #------------------------------------------------------------------------------
787 # HistoryManager(HistoryAccessor) configuration
788 #------------------------------------------------------------------------------
789 ## A class to organize all history-related functionality in one place.
791 ## Options for configuring the SQLite connection
792 # See also: HistoryAccessor.connection_options
793 # c.HistoryManager.connection_options = {}
795 ## Write to database every x commands (higher values save disk access & power).
796 # Values of 1 or less effectively disable caching.
798 # c.HistoryManager.db_cache_size = 0
800 ## Should the history database include output? (default: no)
802 # c.HistoryManager.db_log_output = False
804 ## enable the SQLite history
805 # See also: HistoryAccessor.enabled
806 # c.HistoryManager.enabled = True
808 ## Path to file to use for SQLite history database.
809 # See also: HistoryAccessor.hist_file
810 # c.HistoryManager.hist_file = ''
812 #------------------------------------------------------------------------------
813 # ProfileDir(LoggingConfigurable) configuration
814 #------------------------------------------------------------------------------
815 ## An object to manage the profile directory and its resources.
817 # The profile directory is used by all IPython applications, to manage
818 # configuration, logging and security.
820 # This object knows how to find, create and manage these directories. This
821 # should be used by any code that wants to handle profiles.
823 ## Set the profile location directly. This overrides the logic used by the
826 # c.ProfileDir.location = ''
828 #------------------------------------------------------------------------------
829 # BaseFormatter(Configurable) configuration
830 #------------------------------------------------------------------------------
831 ## A base formatter class that is configurable.
833 # This formatter should usually be used as the base class of all formatters.
834 # It is a traited :class:`Configurable` class and includes an extensible
835 # API for users to determine how their objects are formatted. The following
836 # logic is used to find a function to format an given object.
838 # 1. The object is introspected to see if it has a method with the name
839 # :attr:`print_method`. If is does, that object is passed to that method
841 # 2. If no print method is found, three internal dictionaries are consulted
842 # to find print method: :attr:`singleton_printers`, :attr:`type_printers`
843 # and :attr:`deferred_printers`.
845 # Users should use these dictionaries to register functions that will be
846 # used to compute the format data for their objects (if those objects don't
847 # have the special print methods). The easiest way of using these
848 # dictionaries is through the :meth:`for_type` and :meth:`for_type_by_name`
851 # If no function/callable is found to compute the format data, ``None`` is
852 # returned and this format type is not used.
855 # c.BaseFormatter.deferred_printers = {}
858 # c.BaseFormatter.enabled = True
861 # c.BaseFormatter.singleton_printers = {}
864 # c.BaseFormatter.type_printers = {}
866 #------------------------------------------------------------------------------
867 # PlainTextFormatter(BaseFormatter) configuration
868 #------------------------------------------------------------------------------
869 ## The default pretty-printer.
871 # This uses :mod:`IPython.lib.pretty` to compute the format data of
872 # the object. If the object cannot be pretty printed, :func:`repr` is used.
873 # See the documentation of :mod:`IPython.lib.pretty` for details on
874 # how to write pretty printers. Here is a simple example::
876 # def dtype_pprinter(obj, p, cycle):
878 # return p.text('dtype(...)')
879 # if hasattr(obj, 'fields'):
880 # if obj.fields is None:
883 # p.begin_group(7, 'dtype([')
884 # for i, field in enumerate(obj.descr):
889 # p.end_group(7, '])')
891 # See also: BaseFormatter.deferred_printers
892 # c.PlainTextFormatter.deferred_printers = {}
895 # c.PlainTextFormatter.float_precision = ''
897 ## Truncate large collections (lists, dicts, tuples, sets) to this size.
899 # Set to 0 to disable truncation.
901 # c.PlainTextFormatter.max_seq_length = 1000
904 # c.PlainTextFormatter.max_width = 79
907 # c.PlainTextFormatter.newline = '\n'
910 # c.PlainTextFormatter.pprint = True
912 # See also: BaseFormatter.singleton_printers
913 # c.PlainTextFormatter.singleton_printers = {}
915 # See also: BaseFormatter.type_printers
916 # c.PlainTextFormatter.type_printers = {}
919 # c.PlainTextFormatter.verbose = False
921 #------------------------------------------------------------------------------
922 # Completer(Configurable) configuration
923 #------------------------------------------------------------------------------
924 ## Enable unicode completions, e.g. \alpha<tab> . Includes completion of latex
925 # commands, unicode names, and expanding unicode characters back to latex
928 # c.Completer.backslash_combining_completions = True
930 ## Enable debug for the Completer. Mostly print extra information for
931 # experimental jedi integration.
933 # c.Completer.debug = False
935 ## Activate greedy completion
936 # PENDING DEPRECTION. this is now mostly taken care of with Jedi.
938 # This will enable completion on elements of lists, results of function calls, etc.,
939 # but can be unsafe because the code is actually evaluated on TAB.
941 # c.Completer.greedy = False
943 ## Experimental: restrict time (in milliseconds) during which Jedi can compute types.
944 # Set to 0 to stop computing types. Non-zero value lower than 100ms may hurt
945 # performance by preventing jedi to build its cache.
947 # c.Completer.jedi_compute_type_timeout = 400
949 ## Experimental: Use Jedi to generate autocompletions. Default to True if jedi is
952 # c.Completer.use_jedi = True
954 #------------------------------------------------------------------------------
955 # IPCompleter(Completer) configuration
956 #------------------------------------------------------------------------------
957 ## Extension of the completer class with IPython-specific features
959 ## Enable unicode completions, e.g. \alpha<tab> . Includes completion of latex
960 # commands, unicode names, and expanding unicode characters back to latex
962 # See also: Completer.backslash_combining_completions
963 # c.IPCompleter.backslash_combining_completions = True
965 ## Enable debug for the Completer. Mostly print extra information for
966 # experimental jedi integration.
967 # See also: Completer.debug
968 # c.IPCompleter.debug = False
970 ## Activate greedy completion
971 # See also: Completer.greedy
972 # c.IPCompleter.greedy = False
974 ## Experimental: restrict time (in milliseconds) during which Jedi can compute
976 # See also: Completer.jedi_compute_type_timeout
977 # c.IPCompleter.jedi_compute_type_timeout = 400
979 ## DEPRECATED as of version 5.0.
981 # Instruct the completer to use __all__ for the completion
983 # Specifically, when completing on ``object.<tab>``.
985 # When True: only those names in obj.__all__ will be included.
987 # When False [default]: the __all__ attribute is ignored
989 # c.IPCompleter.limit_to__all__ = False
991 ## Whether to merge completion results into a single list
993 # If False, only the completion results from the first non-empty
994 # completer will be returned.
996 # c.IPCompleter.merge_completions = True
998 ## Instruct the completer to omit private method names
1000 # Specifically, when completing on ``object.<tab>``.
1002 # When 2 [default]: all names that start with '_' will be excluded.
1004 # When 1: all 'magic' names (``__foo__``) will be excluded.
1006 # When 0: nothing will be excluded.
1007 # Choices: any of [0, 1, 2]
1009 # c.IPCompleter.omit__names = 2
1011 ## Experimental: Use Jedi to generate autocompletions. Default to True if jedi is
1013 # See also: Completer.use_jedi
1014 # c.IPCompleter.use_jedi = True
1016 #------------------------------------------------------------------------------
1017 # ScriptMagics(Magics) configuration
1018 #------------------------------------------------------------------------------
1019 ## Magics for talking to scripts
1021 # This defines a base `%%script` cell magic for running a cell
1022 # with a program in a subprocess, and registers a few top-level
1023 # magics that call %%script with common interpreters.
1025 ## Extra script cell magics to define
1027 # This generates simple wrappers of `%%script foo` as `%%foo`.
1029 # If you want to add script magics that aren't on your path,
1030 # specify them in script_paths
1032 # c.ScriptMagics.script_magics = []
1034 ## Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'
1036 # Only necessary for items in script_magics where the default path will not
1037 # find the right interpreter.
1039 # c.ScriptMagics.script_paths = {}
1041 #------------------------------------------------------------------------------
1042 # LoggingMagics(Magics) configuration
1043 #------------------------------------------------------------------------------
1044 ## Magics related to all logging machinery.
1046 ## Suppress output of log state when logging is enabled
1048 # c.LoggingMagics.quiet = False
1050 #------------------------------------------------------------------------------
1051 # StoreMagics(Magics) configuration
1052 #------------------------------------------------------------------------------
1053 ## Lightweight persistence for python variables.
1055 # Provides the %store magic.
1057 ## If True, any %store-d variables will be automatically restored
1058 # when IPython starts.
1060 # c.StoreMagics.autorestore = False