Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.09 KB | None | 0 0
  1. # Configuration file for ipython.
  2.  
  3. c = get_config()
  4.  
  5. #------------------------------------------------------------------------------
  6. # InteractiveShellApp configuration
  7. #------------------------------------------------------------------------------
  8.  
  9. # A Mixin for applications that start InteractiveShell instances.
  10. #
  11. # Provides configurables for loading extensions and executing files as part of
  12. # configuring a Shell environment.
  13. #
  14. # The following methods should be called by the :meth:`initialize` method of the
  15. # subclass:
  16. #
  17. # - :meth:`init_path`
  18. # - :meth:`init_shell` (to be implemented by the subclass)
  19. # - :meth:`init_gui_pylab`
  20. # - :meth:`init_extensions`
  21. # - :meth:`init_code`
  22.  
  23. # Execute the given command string.
  24. # c.InteractiveShellApp.code_to_run = ''
  25.  
  26. # Pre-load matplotlib and numpy for interactive use, selecting a particular
  27. # matplotlib backend and loop integration.
  28. # c.InteractiveShellApp.pylab = None
  29.  
  30. # Run the file referenced by the PYTHONSTARTUP environment variable at IPython
  31. # startup.
  32. # c.InteractiveShellApp.exec_PYTHONSTARTUP = True
  33.  
  34. # lines of code to run at IPython startup.
  35. # c.InteractiveShellApp.exec_lines = []
  36.  
  37. # Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
  38. # 'pyglet', 'qt', 'qt5', 'tk', 'wx').
  39. # c.InteractiveShellApp.gui = None
  40.  
  41. # Reraise exceptions encountered loading IPython extensions?
  42. # c.InteractiveShellApp.reraise_ipython_extension_failures = False
  43.  
  44. # Configure matplotlib for interactive use with the default matplotlib backend.
  45. # c.InteractiveShellApp.matplotlib = None
  46.  
  47. # If true, IPython will populate the user namespace with numpy, pylab, etc. and
  48. # an ``import *`` is done from numpy and pylab, when using pylab mode.
  49. #
  50. # When False, pylab mode should not import any names into the user namespace.
  51. # c.InteractiveShellApp.pylab_import_all = True
  52.  
  53. # A list of dotted module names of IPython extensions to load.
  54. # c.InteractiveShellApp.extensions = []
  55.  
  56. # Run the module as a script.
  57. # c.InteractiveShellApp.module_to_run = ''
  58.  
  59. # Should variables loaded at startup (by startup files, exec_lines, etc.) be
  60. # hidden from tools like %who?
  61. # c.InteractiveShellApp.hide_initial_ns = True
  62.  
  63. # dotted module name of an IPython extension to load.
  64. # c.InteractiveShellApp.extra_extension = ''
  65.  
  66. # List of files to run at IPython startup.
  67. # c.InteractiveShellApp.exec_files = []
  68.  
  69. # A file to be run
  70. # c.InteractiveShellApp.file_to_run = ''
  71.  
  72. #------------------------------------------------------------------------------
  73. # TerminalIPythonApp configuration
  74. #------------------------------------------------------------------------------
  75.  
  76. # TerminalIPythonApp will inherit config from: BaseIPythonApplication,
  77. # Application, InteractiveShellApp
  78.  
  79. # Run the file referenced by the PYTHONSTARTUP environment variable at IPython
  80. # startup.
  81. # c.TerminalIPythonApp.exec_PYTHONSTARTUP = True
  82.  
  83. # Pre-load matplotlib and numpy for interactive use, selecting a particular
  84. # matplotlib backend and loop integration.
  85. # c.TerminalIPythonApp.pylab = None
  86.  
  87. # Create a massive crash report when IPython encounters what may be an internal
  88. # error. The default is to append a short message to the usual traceback
  89. # c.TerminalIPythonApp.verbose_crash = False
  90.  
  91. # Run the module as a script.
  92. # c.TerminalIPythonApp.module_to_run = ''
  93.  
  94. # The date format used by logging formatters for %(asctime)s
  95. # c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  96.  
  97. # Whether to overwrite existing config files when copying
  98. # c.TerminalIPythonApp.overwrite = False
  99.  
  100. # Execute the given command string.
  101. # c.TerminalIPythonApp.code_to_run = ''
  102.  
  103. # Set the log level by value or name.
  104. # c.TerminalIPythonApp.log_level = 30
  105.  
  106. # lines of code to run at IPython startup.
  107. # c.TerminalIPythonApp.exec_lines = []
  108.  
  109. # Suppress warning messages about legacy config files
  110. # c.TerminalIPythonApp.ignore_old_config = False
  111.  
  112. # Path to an extra config file to load.
  113. #
  114. # If specified, load this config file in addition to any other IPython config.
  115. # c.TerminalIPythonApp.extra_config_file = u''
  116.  
  117. # Should variables loaded at startup (by startup files, exec_lines, etc.) be
  118. # hidden from tools like %who?
  119. # c.TerminalIPythonApp.hide_initial_ns = True
  120.  
  121. # dotted module name of an IPython extension to load.
  122. # c.TerminalIPythonApp.extra_extension = ''
  123.  
  124. # A file to be run
  125. # c.TerminalIPythonApp.file_to_run = ''
  126.  
  127. # The IPython profile to use.
  128. # c.TerminalIPythonApp.profile = u'default'
  129.  
  130. # Configure matplotlib for interactive use with the default matplotlib backend.
  131. # c.TerminalIPythonApp.matplotlib = None
  132.  
  133. # If a command or file is given via the command-line, e.g. 'ipython foo.py',
  134. # start an interactive shell after executing the file or command.
  135. # c.TerminalIPythonApp.force_interact = False
  136.  
  137. # If true, IPython will populate the user namespace with numpy, pylab, etc. and
  138. # an ``import *`` is done from numpy and pylab, when using pylab mode.
  139. #
  140. # When False, pylab mode should not import any names into the user namespace.
  141. # c.TerminalIPythonApp.pylab_import_all = True
  142.  
  143. # The name of the IPython directory. This directory is used for logging
  144. # configuration (through profiles), history storage, etc. The default is usually
  145. # $HOME/.ipython. This option can also be specified through the environment
  146. # variable IPYTHONDIR.
  147. # c.TerminalIPythonApp.ipython_dir = u''
  148.  
  149. # Whether to display a banner upon starting IPython.
  150. # c.TerminalIPythonApp.display_banner = True
  151.  
  152. # Whether to install the default config files into the profile dir. If a new
  153. # profile is being created, and IPython contains config files for that profile,
  154. # then they will be staged into the new directory. Otherwise, default config
  155. # files will be automatically generated.
  156. # c.TerminalIPythonApp.copy_config_files = False
  157.  
  158. # List of files to run at IPython startup.
  159. # c.TerminalIPythonApp.exec_files = []
  160.  
  161. # Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
  162. # 'pyglet', 'qt', 'qt5', 'tk', 'wx').
  163. # c.TerminalIPythonApp.gui = None
  164.  
  165. # Reraise exceptions encountered loading IPython extensions?
  166. # c.TerminalIPythonApp.reraise_ipython_extension_failures = False
  167.  
  168. # A list of dotted module names of IPython extensions to load.
  169. # c.TerminalIPythonApp.extensions = []
  170.  
  171. # Start IPython quickly by skipping the loading of config files.
  172. # c.TerminalIPythonApp.quick = False
  173.  
  174. # The Logging format template
  175. # c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  176.  
  177. #------------------------------------------------------------------------------
  178. # TerminalInteractiveShell configuration
  179. #------------------------------------------------------------------------------
  180.  
  181. # TerminalInteractiveShell will inherit config from: InteractiveShell
  182.  
  183. # auto editing of files with syntax errors.
  184. # c.TerminalInteractiveShell.autoedit_syntax = False
  185.  
  186. # Use colors for displaying information about objects. Because this information
  187. # is passed through a pager (like 'less'), and some pagers get confused with
  188. # color codes, this capability can be turned off.
  189. # c.TerminalInteractiveShell.color_info = True
  190.  
  191. # A list of ast.NodeTransformer subclass instances, which will be applied to
  192. # user input before code is run.
  193. # c.TerminalInteractiveShell.ast_transformers = []
  194.  
  195. #
  196. # c.TerminalInteractiveShell.history_length = 10000
  197.  
  198. # Don't call post-execute functions that have failed in the past.
  199. # c.TerminalInteractiveShell.disable_failing_post_execute = False
  200.  
  201. # Show rewritten input, e.g. for autocall.
  202. # c.TerminalInteractiveShell.show_rewritten_input = True
  203.  
  204. # Set the color scheme (NoColor, Linux, or LightBG).
  205. # c.TerminalInteractiveShell.colors = 'Linux'
  206.  
  207. # If True, anything that would be passed to the pager will be displayed as
  208. # regular output instead.
  209. # c.TerminalInteractiveShell.display_page = False
  210.  
  211. # Autoindent IPython code entered interactively.
  212. # c.TerminalInteractiveShell.autoindent = True
  213.  
  214. #
  215. # c.TerminalInteractiveShell.separate_in = '\n'
  216.  
  217. # Deprecated, use PromptManager.in2_template
  218. # c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
  219.  
  220. #
  221. # c.TerminalInteractiveShell.separate_out = ''
  222.  
  223. # Deprecated, use PromptManager.in_template
  224. # c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
  225.  
  226. # Make IPython automatically call any callable object even if you didn't type
  227. # explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
  228. # The value can be '0' to disable the feature, '1' for 'smart' autocall, where
  229. # it is not applied if there are no more arguments on the line, and '2' for
  230. # 'full' autocall, where all callable objects are automatically called (even if
  231. # no arguments are present).
  232. # c.TerminalInteractiveShell.autocall = 0
  233.  
  234. # Number of lines of your screen, used to control printing of very long strings.
  235. # Strings longer than this number of lines will be sent through a pager instead
  236. # of directly printed. The default value for this is 0, which means IPython
  237. # will auto-detect your screen size every time it needs to print certain
  238. # potentially long strings (this doesn't change the behavior of the 'print'
  239. # keyword, it's only triggered internally). If for some reason this isn't
  240. # working well (it needs curses support), specify it yourself. Otherwise don't
  241. # change the default.
  242. # c.TerminalInteractiveShell.screen_length = 0
  243.  
  244. # Set the editor used by IPython (default to $EDITOR/vi/notepad).
  245. # c.TerminalInteractiveShell.editor = 'vi'
  246.  
  247. # Deprecated, use PromptManager.justify
  248. # c.TerminalInteractiveShell.prompts_pad_left = True
  249.  
  250. # The part of the banner to be printed before the profile
  251. # c.TerminalInteractiveShell.banner1 = 'Python 2.7.6 (default, Mar 22 2014, 22:59:56) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\n? -> Introduction and overview of IPython\'s features.\n%quickref -> Quick reference.\nhelp -> Python\'s own help system.\nobject? -> Details about \'object\', use \'object??\' for extra details.\n'
  252. c.TerminalInteractiveShell.banner1 = ''
  253.  
  254. #
  255. # c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\\C-o": tab-insert', '"\\C-r": reverse-search-history', '"\\C-s": forward-search-history', '"\\C-p": history-search-backward', '"\\C-n": history-search-forward', '"\\e[A": history-search-backward', '"\\e[B": history-search-forward', '"\\C-k": kill-line', '"\\C-u": unix-line-discard']
  256.  
  257. # The part of the banner to be printed after the profile
  258. # c.TerminalInteractiveShell.banner2 = ''
  259.  
  260. #
  261. # c.TerminalInteractiveShell.separate_out2 = ''
  262.  
  263. #
  264. # c.TerminalInteractiveShell.wildcards_case_sensitive = True
  265.  
  266. #
  267. # c.TerminalInteractiveShell.debug = False
  268.  
  269. # Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
  270. # Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
  271. # direct exit without any confirmation.
  272. c.TerminalInteractiveShell.confirm_exit = False
  273.  
  274. #
  275. # c.TerminalInteractiveShell.ipython_dir = ''
  276.  
  277. #
  278. # c.TerminalInteractiveShell.readline_remove_delims = '-/~'
  279.  
  280. # Start logging to the default log file in overwrite mode. Use `logappend` to
  281. # specify a log file to **append** logs to.
  282. # c.TerminalInteractiveShell.logstart = False
  283.  
  284. # The name of the logfile to use.
  285. # c.TerminalInteractiveShell.logfile = ''
  286.  
  287. # The shell program to be used for paging.
  288. # c.TerminalInteractiveShell.pager = 'less'
  289.  
  290. # Enable magic commands to be called without the leading %.
  291. # c.TerminalInteractiveShell.automagic = True
  292.  
  293. # Save multi-line entries as one entry in readline history
  294. # c.TerminalInteractiveShell.multiline_history = True
  295.  
  296. #
  297. # c.TerminalInteractiveShell.readline_use = True
  298.  
  299. # Enable deep (recursive) reloading by default. IPython can use the deep_reload
  300. # module which reloads changes in modules recursively (it replaces the reload()
  301. # function, so you don't need to change anything to use it). deep_reload()
  302. # forces a full reload of modules whose code may have changed, which the default
  303. # reload() function does not. When deep_reload is off, IPython will use the
  304. # normal reload(), but deep_reload will still be available as dreload().
  305. # c.TerminalInteractiveShell.deep_reload = False
  306.  
  307. # Start logging to the given file in append mode. Use `logfile` to specify a log
  308. # file to **overwrite** logs to.
  309. # c.TerminalInteractiveShell.logappend = ''
  310.  
  311. #
  312. # c.TerminalInteractiveShell.xmode = 'Context'
  313.  
  314. #
  315. # c.TerminalInteractiveShell.quiet = False
  316.  
  317. # Enable auto setting the terminal title.
  318. # c.TerminalInteractiveShell.term_title = False
  319.  
  320. #
  321. # c.TerminalInteractiveShell.object_info_string_level = 0
  322.  
  323. # Deprecated, use PromptManager.out_template
  324. # c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
  325.  
  326. # Set the size of the output cache. The default is 1000, you can change it
  327. # permanently in your config file. Setting it to 0 completely disables the
  328. # caching system, and the minimum value accepted is 20 (if you provide a value
  329. # less than 20, it is reset to 0 and a warning is issued). This limit is
  330. # defined because otherwise you'll spend more time re-flushing a too small cache
  331. # than working
  332. # c.TerminalInteractiveShell.cache_size = 1000
  333.  
  334. # 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
  335. # interactively (displaying output from expressions).
  336. # c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr'
  337.  
  338. # Automatically call the pdb debugger after every exception.
  339. # c.TerminalInteractiveShell.pdb = False
  340.  
  341. #------------------------------------------------------------------------------
  342. # PromptManager configuration
  343. #------------------------------------------------------------------------------
  344.  
  345. # This is the primary interface for producing IPython's prompts.
  346.  
  347. # Output prompt. '\#' will be transformed to the prompt number
  348. # c.PromptManager.out_template = 'Out[\\#]: '
  349.  
  350. # Continuation prompt.
  351. # c.PromptManager.in2_template = ' .\\D.: '
  352. c.PromptManager.in2_template = '>>> '
  353.  
  354.  
  355. # If True (default), each prompt will be right-aligned with the preceding one.
  356. # c.PromptManager.justify = True
  357.  
  358. # Input prompt. '\#' will be transformed to the prompt number
  359. # c.PromptManager.in_template = 'In [\\#]: '
  360. c.PromptManager.in_template = '>>> '
  361.  
  362. #
  363. # c.PromptManager.color_scheme = 'Linux'
  364.  
  365. #------------------------------------------------------------------------------
  366. # HistoryManager configuration
  367. #------------------------------------------------------------------------------
  368.  
  369. # A class to organize all history-related functionality in one place.
  370.  
  371. # HistoryManager will inherit config from: HistoryAccessor
  372.  
  373. # Should the history database include output? (default: no)
  374. # c.HistoryManager.db_log_output = False
  375.  
  376. # Write to database every x commands (higher values save disk access & power).
  377. # Values of 1 or less effectively disable caching.
  378. # c.HistoryManager.db_cache_size = 0
  379.  
  380. # Path to file to use for SQLite history database.
  381. #
  382. # By default, IPython will put the history database in the IPython profile
  383. # directory. If you would rather share one history among profiles, you can set
  384. # this value in each, so that they are consistent.
  385. #
  386. # Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts.
  387. # If you see IPython hanging, try setting this to something on a local disk,
  388. # e.g::
  389. #
  390. # ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite
  391. # c.HistoryManager.hist_file = u''
  392.  
  393. # Options for configuring the SQLite connection
  394. #
  395. # These options are passed as keyword args to sqlite3.connect when establishing
  396. # database conenctions.
  397. # c.HistoryManager.connection_options = {}
  398.  
  399. # enable the SQLite history
  400. #
  401. # set enabled=False to disable the SQLite history, in which case there will be
  402. # no stored history, no SQLite connection, and no background saving thread.
  403. # This may be necessary in some threaded environments where IPython is embedded.
  404. # c.HistoryManager.enabled = True
  405.  
  406. #------------------------------------------------------------------------------
  407. # ProfileDir configuration
  408. #------------------------------------------------------------------------------
  409.  
  410. # An object to manage the profile directory and its resources.
  411. #
  412. # The profile directory is used by all IPython applications, to manage
  413. # configuration, logging and security.
  414. #
  415. # This object knows how to find, create and manage these directories. This
  416. # should be used by any code that wants to handle profiles.
  417.  
  418. # Set the profile location directly. This overrides the logic used by the
  419. # `profile` option.
  420. # c.ProfileDir.location = u''
  421.  
  422. #------------------------------------------------------------------------------
  423. # PlainTextFormatter configuration
  424. #------------------------------------------------------------------------------
  425.  
  426. # The default pretty-printer.
  427. #
  428. # This uses :mod:`IPython.lib.pretty` to compute the format data of the object.
  429. # If the object cannot be pretty printed, :func:`repr` is used. See the
  430. # documentation of :mod:`IPython.lib.pretty` for details on how to write pretty
  431. # printers. Here is a simple example::
  432. #
  433. # def dtype_pprinter(obj, p, cycle):
  434. # if cycle:
  435. # return p.text('dtype(...)')
  436. # if hasattr(obj, 'fields'):
  437. # if obj.fields is None:
  438. # p.text(repr(obj))
  439. # else:
  440. # p.begin_group(7, 'dtype([')
  441. # for i, field in enumerate(obj.descr):
  442. # if i > 0:
  443. # p.text(',')
  444. # p.breakable()
  445. # p.pretty(field)
  446. # p.end_group(7, '])')
  447.  
  448. # PlainTextFormatter will inherit config from: BaseFormatter
  449.  
  450. #
  451. # c.PlainTextFormatter.type_printers = {}
  452.  
  453. # Truncate large collections (lists, dicts, tuples, sets) to this size.
  454. #
  455. # Set to 0 to disable truncation.
  456. # c.PlainTextFormatter.max_seq_length = 1000
  457.  
  458. #
  459. # c.PlainTextFormatter.float_precision = ''
  460.  
  461. #
  462. # c.PlainTextFormatter.verbose = False
  463.  
  464. #
  465. # c.PlainTextFormatter.deferred_printers = {}
  466.  
  467. #
  468. # c.PlainTextFormatter.newline = '\n'
  469.  
  470. #
  471. # c.PlainTextFormatter.max_width = 79
  472.  
  473. #
  474. # c.PlainTextFormatter.pprint = True
  475.  
  476. #
  477. # c.PlainTextFormatter.singleton_printers = {}
  478.  
  479. #------------------------------------------------------------------------------
  480. # IPCompleter configuration
  481. #------------------------------------------------------------------------------
  482.  
  483. # Extension of the completer class with IPython-specific features
  484.  
  485. # IPCompleter will inherit config from: Completer
  486.  
  487. # Instruct the completer to omit private method names
  488. #
  489. # Specifically, when completing on ``object.<tab>``.
  490. #
  491. # When 2 [default]: all names that start with '_' will be excluded.
  492. #
  493. # When 1: all 'magic' names (``__foo__``) will be excluded.
  494. #
  495. # When 0: nothing will be excluded.
  496. # c.IPCompleter.omit__names = 2
  497.  
  498. # Whether to merge completion results into a single list
  499. #
  500. # If False, only the completion results from the first non-empty completer will
  501. # be returned.
  502. # c.IPCompleter.merge_completions = True
  503.  
  504. # Instruct the completer to use __all__ for the completion
  505. #
  506. # Specifically, when completing on ``object.<tab>``.
  507. #
  508. # When True: only those names in obj.__all__ will be included.
  509. #
  510. # When False [default]: the __all__ attribute is ignored
  511. # c.IPCompleter.limit_to__all__ = False
  512.  
  513. # Activate greedy completion
  514. #
  515. # This will enable completion on elements of lists, results of function calls,
  516. # etc., but can be unsafe because the code is actually evaluated on TAB.
  517. # c.IPCompleter.greedy = False
  518.  
  519. #------------------------------------------------------------------------------
  520. # ScriptMagics configuration
  521. #------------------------------------------------------------------------------
  522.  
  523. # Magics for talking to scripts
  524. #
  525. # This defines a base `%%script` cell magic for running a cell with a program in
  526. # a subprocess, and registers a few top-level magics that call %%script with
  527. # common interpreters.
  528.  
  529. # Extra script cell magics to define
  530. #
  531. # This generates simple wrappers of `%%script foo` as `%%foo`.
  532. #
  533. # If you want to add script magics that aren't on your path, specify them in
  534. # script_paths
  535. # c.ScriptMagics.script_magics = []
  536.  
  537. # Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'
  538. #
  539. # Only necessary for items in script_magics where the default path will not find
  540. # the right interpreter.
  541. # c.ScriptMagics.script_paths = {}
  542.  
  543. #------------------------------------------------------------------------------
  544. # StoreMagics configuration
  545. #------------------------------------------------------------------------------
  546.  
  547. # Lightweight persistence for python variables.
  548. #
  549. # Provides the %store magic.
  550.  
  551. # If True, any %store-d variables will be automatically restored when IPython
  552. # starts.
  553. # c.StoreMagics.autorestore = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement