Gentoo Archives: gentoo-commits

From: Marius Brehler <marbre@××××××××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: patches/
Date: Sat, 28 Nov 2015 18:02:46
Message-Id: 1448733709.c3d5db470d3903c06eb32101eaa37f0696cec756.marbre@gentoo
1 commit: c3d5db470d3903c06eb32101eaa37f0696cec756
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Sat Nov 28 18:01:49 2015 +0000
4 Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
5 CommitDate: Sat Nov 28 18:01:49 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c3d5db47
7
8 Drop patches/jupyter_core-4.0.4-tests-dotipython.patch
9
10 patches/jupyter_core-4.0.4-tests-dotipython.patch | 4743 ---------------------
11 1 file changed, 4743 deletions(-)
12
13 diff --git a/patches/jupyter_core-4.0.4-tests-dotipython.patch b/patches/jupyter_core-4.0.4-tests-dotipython.patch
14 deleted file mode 100644
15 index de84ce9..0000000
16 --- a/patches/jupyter_core-4.0.4-tests-dotipython.patch
17 +++ /dev/null
18 @@ -1,4743 +0,0 @@
19 -Patch to add tests/dotipython* data, which is not shipped
20 -with pypi.
21 -Fixes https://github.com/gentoo-science/sci/issues/479
22 -
23 -Patch by Marius Brehler.
24 -
25 ---- jupyter_core/tests/dotipython/nbextensions/myext.js
26 -+++ jupyter_core/tests/dotipython/nbextensions/myext.js
27 -@@ -0,0 +1 @@
28 -+var hello;
29 -
30 ---- jupyter_core/tests/dotipython/profile_default/ipython_config.py
31 -+++ jupyter_core/tests/dotipython/profile_default/ipython_config.py
32 -@@ -0,0 +1,549 @@
33 -+# Configuration file for ipython.
34 -+
35 -+c = get_config()
36 -+
37 -+#------------------------------------------------------------------------------
38 -+# InteractiveShellApp configuration
39 -+#------------------------------------------------------------------------------
40 -+
41 -+# A Mixin for applications that start InteractiveShell instances.
42 -+#
43 -+# Provides configurables for loading extensions and executing files as part of
44 -+# configuring a Shell environment.
45 -+#
46 -+# The following methods should be called by the :meth:`initialize` method of the
47 -+# subclass:
48 -+#
49 -+# - :meth:`init_path`
50 -+# - :meth:`init_shell` (to be implemented by the subclass)
51 -+# - :meth:`init_gui_pylab`
52 -+# - :meth:`init_extensions`
53 -+# - :meth:`init_code`
54 -+
55 -+# lines of code to run at IPython startup.
56 -+# c.InteractiveShellApp.exec_lines = []
57 -+
58 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
59 -+# hidden from tools like %who?
60 -+# c.InteractiveShellApp.hide_initial_ns = True
61 -+
62 -+# A list of dotted module names of IPython extensions to load.
63 -+# c.InteractiveShellApp.extensions = []
64 -+
65 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
66 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
67 -+# c.InteractiveShellApp.gui = None
68 -+
69 -+# A file to be run
70 -+# c.InteractiveShellApp.file_to_run = ''
71 -+
72 -+# Configure matplotlib for interactive use with the default matplotlib backend.
73 -+# c.InteractiveShellApp.matplotlib = None
74 -+
75 -+# Reraise exceptions encountered loading IPython extensions?
76 -+# c.InteractiveShellApp.reraise_ipython_extension_failures = False
77 -+
78 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
79 -+# startup.
80 -+# c.InteractiveShellApp.exec_PYTHONSTARTUP = True
81 -+
82 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
83 -+# matplotlib backend and loop integration.
84 -+# c.InteractiveShellApp.pylab = None
85 -+
86 -+# Run the module as a script.
87 -+# c.InteractiveShellApp.module_to_run = ''
88 -+
89 -+# dotted module name of an IPython extension to load.
90 -+# c.InteractiveShellApp.extra_extension = ''
91 -+
92 -+# List of files to run at IPython startup.
93 -+# c.InteractiveShellApp.exec_files = []
94 -+
95 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
96 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
97 -+#
98 -+# When False, pylab mode should not import any names into the user namespace.
99 -+# c.InteractiveShellApp.pylab_import_all = True
100 -+
101 -+# Execute the given command string.
102 -+# c.InteractiveShellApp.code_to_run = ''
103 -+
104 -+#------------------------------------------------------------------------------
105 -+# TerminalIPythonApp configuration
106 -+#------------------------------------------------------------------------------
107 -+
108 -+# TerminalIPythonApp will inherit config from: BaseIPythonApplication,
109 -+# Application, InteractiveShellApp
110 -+
111 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
112 -+# hidden from tools like %who?
113 -+# c.TerminalIPythonApp.hide_initial_ns = True
114 -+
115 -+# A list of dotted module names of IPython extensions to load.
116 -+# c.TerminalIPythonApp.extensions = []
117 -+
118 -+# Execute the given command string.
119 -+# c.TerminalIPythonApp.code_to_run = ''
120 -+
121 -+# The date format used by logging formatters for %(asctime)s
122 -+# c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
123 -+
124 -+# Reraise exceptions encountered loading IPython extensions?
125 -+# c.TerminalIPythonApp.reraise_ipython_extension_failures = False
126 -+
127 -+# Set the log level by value or name.
128 -+# c.TerminalIPythonApp.log_level = 30
129 -+
130 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
131 -+# startup.
132 -+# c.TerminalIPythonApp.exec_PYTHONSTARTUP = True
133 -+
134 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
135 -+# matplotlib backend and loop integration.
136 -+# c.TerminalIPythonApp.pylab = None
137 -+
138 -+# Run the module as a script.
139 -+# c.TerminalIPythonApp.module_to_run = ''
140 -+
141 -+# Whether to display a banner upon starting IPython.
142 -+# c.TerminalIPythonApp.display_banner = True
143 -+
144 -+# dotted module name of an IPython extension to load.
145 -+# c.TerminalIPythonApp.extra_extension = ''
146 -+
147 -+# Create a massive crash report when IPython encounters what may be an internal
148 -+# error. The default is to append a short message to the usual traceback
149 -+# c.TerminalIPythonApp.verbose_crash = False
150 -+
151 -+# Whether to overwrite existing config files when copying
152 -+# c.TerminalIPythonApp.overwrite = False
153 -+
154 -+# The IPython profile to use.
155 -+# c.TerminalIPythonApp.profile = 'default'
156 -+
157 -+# If a command or file is given via the command-line, e.g. 'ipython foo.py',
158 -+# start an interactive shell after executing the file or command.
159 -+# c.TerminalIPythonApp.force_interact = False
160 -+
161 -+# List of files to run at IPython startup.
162 -+# c.TerminalIPythonApp.exec_files = []
163 -+
164 -+# Start IPython quickly by skipping the loading of config files.
165 -+# c.TerminalIPythonApp.quick = False
166 -+
167 -+# The Logging format template
168 -+# c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
169 -+
170 -+# Whether to install the default config files into the profile dir. If a new
171 -+# profile is being created, and IPython contains config files for that profile,
172 -+# then they will be staged into the new directory. Otherwise, default config
173 -+# files will be automatically generated.
174 -+# c.TerminalIPythonApp.copy_config_files = False
175 -+
176 -+# Path to an extra config file to load.
177 -+#
178 -+# If specified, load this config file in addition to any other IPython config.
179 -+# c.TerminalIPythonApp.extra_config_file = ''
180 -+
181 -+# lines of code to run at IPython startup.
182 -+# c.TerminalIPythonApp.exec_lines = []
183 -+
184 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
185 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
186 -+# c.TerminalIPythonApp.gui = None
187 -+
188 -+# A file to be run
189 -+# c.TerminalIPythonApp.file_to_run = ''
190 -+
191 -+# Configure matplotlib for interactive use with the default matplotlib backend.
192 -+# c.TerminalIPythonApp.matplotlib = None
193 -+
194 -+# Suppress warning messages about legacy config files
195 -+# c.TerminalIPythonApp.ignore_old_config = False
196 -+
197 -+# The name of the IPython directory. This directory is used for logging
198 -+# configuration (through profiles), history storage, etc. The default is usually
199 -+# $HOME/.ipython. This option can also be specified through the environment
200 -+# variable IPYTHONDIR.
201 -+# c.TerminalIPythonApp.ipython_dir = ''
202 -+
203 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
204 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
205 -+#
206 -+# When False, pylab mode should not import any names into the user namespace.
207 -+# c.TerminalIPythonApp.pylab_import_all = True
208 -+
209 -+#------------------------------------------------------------------------------
210 -+# TerminalInteractiveShell configuration
211 -+#------------------------------------------------------------------------------
212 -+
213 -+# TerminalInteractiveShell will inherit config from: InteractiveShell
214 -+
215 -+#
216 -+# c.TerminalInteractiveShell.object_info_string_level = 0
217 -+
218 -+#
219 -+# c.TerminalInteractiveShell.separate_out = ''
220 -+
221 -+# Automatically call the pdb debugger after every exception.
222 -+# c.TerminalInteractiveShell.pdb = False
223 -+
224 -+#
225 -+# c.TerminalInteractiveShell.ipython_dir = ''
226 -+
227 -+#
228 -+# c.TerminalInteractiveShell.history_length = 10000
229 -+
230 -+#
231 -+# c.TerminalInteractiveShell.readline_remove_delims = '-/~'
232 -+
233 -+# auto editing of files with syntax errors.
234 -+# c.TerminalInteractiveShell.autoedit_syntax = False
235 -+
236 -+# If True, anything that would be passed to the pager will be displayed as
237 -+# regular output instead.
238 -+# c.TerminalInteractiveShell.display_page = False
239 -+
240 -+#
241 -+# c.TerminalInteractiveShell.debug = False
242 -+
243 -+#
244 -+# c.TerminalInteractiveShell.separate_in = '\n'
245 -+
246 -+# Start logging to the default log file in overwrite mode. Use `logappend` to
247 -+# specify a log file to **append** logs to.
248 -+# c.TerminalInteractiveShell.logstart = False
249 -+
250 -+# Set the size of the output cache. The default is 1000, you can change it
251 -+# permanently in your config file. Setting it to 0 completely disables the
252 -+# caching system, and the minimum value accepted is 20 (if you provide a value
253 -+# less than 20, it is reset to 0 and a warning is issued). This limit is
254 -+# defined because otherwise you'll spend more time re-flushing a too small cache
255 -+# than working
256 -+# c.TerminalInteractiveShell.cache_size = 1000
257 -+
258 -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
259 -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
260 -+# direct exit without any confirmation.
261 -+# c.TerminalInteractiveShell.confirm_exit = True
262 -+
263 -+# The shell program to be used for paging.
264 -+# c.TerminalInteractiveShell.pager = 'less'
265 -+
266 -+#
267 -+# c.TerminalInteractiveShell.wildcards_case_sensitive = True
268 -+
269 -+# Deprecated, use PromptManager.justify
270 -+# c.TerminalInteractiveShell.prompts_pad_left = True
271 -+
272 -+# The name of the logfile to use.
273 -+# c.TerminalInteractiveShell.logfile = ''
274 -+
275 -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
276 -+# interactively (displaying output from expressions).
277 -+# c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr'
278 -+
279 -+#
280 -+# c.TerminalInteractiveShell.quiet = False
281 -+
282 -+# Save multi-line entries as one entry in readline history
283 -+# c.TerminalInteractiveShell.multiline_history = True
284 -+
285 -+# Deprecated, use PromptManager.in_template
286 -+# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
287 -+
288 -+#
289 -+# c.TerminalInteractiveShell.readline_use = True
290 -+
291 -+# Enable magic commands to be called without the leading %.
292 -+# c.TerminalInteractiveShell.automagic = True
293 -+
294 -+# The part of the banner to be printed before the profile
295 -+# c.TerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\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'
296 -+
297 -+# Make IPython automatically call any callable object even if you didn't type
298 -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
299 -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
300 -+# it is not applied if there are no more arguments on the line, and '2' for
301 -+# 'full' autocall, where all callable objects are automatically called (even if
302 -+# no arguments are present).
303 -+# c.TerminalInteractiveShell.autocall = 0
304 -+
305 -+# Autoindent IPython code entered interactively.
306 -+# c.TerminalInteractiveShell.autoindent = True
307 -+
308 -+# Set the color scheme (NoColor, Linux, or LightBG).
309 -+# c.TerminalInteractiveShell.colors = 'LightBG'
310 -+
311 -+# Set the editor used by IPython (default to $EDITOR/vi/notepad).
312 -+# c.TerminalInteractiveShell.editor = 'mate -w'
313 -+
314 -+# Use colors for displaying information about objects. Because this information
315 -+# is passed through a pager (like 'less'), and some pagers get confused with
316 -+# color codes, this capability can be turned off.
317 -+# c.TerminalInteractiveShell.color_info = True
318 -+
319 -+#
320 -+# 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']
321 -+
322 -+# Deprecated, use PromptManager.in2_template
323 -+# c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
324 -+
325 -+#
326 -+# c.TerminalInteractiveShell.separate_out2 = ''
327 -+
328 -+# The part of the banner to be printed after the profile
329 -+# c.TerminalInteractiveShell.banner2 = ''
330 -+
331 -+# Start logging to the given file in append mode. Use `logfile` to specify a log
332 -+# file to **overwrite** logs to.
333 -+# c.TerminalInteractiveShell.logappend = ''
334 -+
335 -+# Don't call post-execute functions that have failed in the past.
336 -+# c.TerminalInteractiveShell.disable_failing_post_execute = False
337 -+
338 -+# Deprecated, use PromptManager.out_template
339 -+# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
340 -+
341 -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
342 -+# module which reloads changes in modules recursively (it replaces the reload()
343 -+# function, so you don't need to change anything to use it). deep_reload()
344 -+# forces a full reload of modules whose code may have changed, which the default
345 -+# reload() function does not. When deep_reload is off, IPython will use the
346 -+# normal reload(), but deep_reload will still be available as dreload().
347 -+# c.TerminalInteractiveShell.deep_reload = False
348 -+
349 -+#
350 -+# c.TerminalInteractiveShell.xmode = 'Context'
351 -+
352 -+# Show rewritten input, e.g. for autocall.
353 -+# c.TerminalInteractiveShell.show_rewritten_input = True
354 -+
355 -+# Number of lines of your screen, used to control printing of very long strings.
356 -+# Strings longer than this number of lines will be sent through a pager instead
357 -+# of directly printed. The default value for this is 0, which means IPython
358 -+# will auto-detect your screen size every time it needs to print certain
359 -+# potentially long strings (this doesn't change the behavior of the 'print'
360 -+# keyword, it's only triggered internally). If for some reason this isn't
361 -+# working well (it needs curses support), specify it yourself. Otherwise don't
362 -+# change the default.
363 -+# c.TerminalInteractiveShell.screen_length = 0
364 -+
365 -+# A list of ast.NodeTransformer subclass instances, which will be applied to
366 -+# user input before code is run.
367 -+# c.TerminalInteractiveShell.ast_transformers = []
368 -+
369 -+# Enable auto setting the terminal title.
370 -+# c.TerminalInteractiveShell.term_title = False
371 -+
372 -+#------------------------------------------------------------------------------
373 -+# PromptManager configuration
374 -+#------------------------------------------------------------------------------
375 -+
376 -+# This is the primary interface for producing IPython's prompts.
377 -+
378 -+#
379 -+# c.PromptManager.color_scheme = 'Linux'
380 -+
381 -+# Continuation prompt.
382 -+# c.PromptManager.in2_template = ' .\\D.: '
383 -+
384 -+# Input prompt. '\#' will be transformed to the prompt number
385 -+# c.PromptManager.in_template = 'In [\\#]: '
386 -+
387 -+# Output prompt. '\#' will be transformed to the prompt number
388 -+# c.PromptManager.out_template = 'Out[\\#]: '
389 -+
390 -+# If True (default), each prompt will be right-aligned with the preceding one.
391 -+# c.PromptManager.justify = True
392 -+
393 -+#------------------------------------------------------------------------------
394 -+# HistoryManager configuration
395 -+#------------------------------------------------------------------------------
396 -+
397 -+# A class to organize all history-related functionality in one place.
398 -+
399 -+# HistoryManager will inherit config from: HistoryAccessor
400 -+
401 -+# Options for configuring the SQLite connection
402 -+#
403 -+# These options are passed as keyword args to sqlite3.connect when establishing
404 -+# database conenctions.
405 -+# c.HistoryManager.connection_options = {}
406 -+
407 -+# Should the history database include output? (default: no)
408 -+# c.HistoryManager.db_log_output = False
409 -+
410 -+# enable the SQLite history
411 -+#
412 -+# set enabled=False to disable the SQLite history, in which case there will be
413 -+# no stored history, no SQLite connection, and no background saving thread.
414 -+# This may be necessary in some threaded environments where IPython is embedded.
415 -+# c.HistoryManager.enabled = True
416 -+
417 -+# Path to file to use for SQLite history database.
418 -+#
419 -+# By default, IPython will put the history database in the IPython profile
420 -+# directory. If you would rather share one history among profiles, you can set
421 -+# this value in each, so that they are consistent.
422 -+#
423 -+# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts.
424 -+# If you see IPython hanging, try setting this to something on a local disk,
425 -+# e.g::
426 -+#
427 -+# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite
428 -+# c.HistoryManager.hist_file = ''
429 -+
430 -+# Write to database every x commands (higher values save disk access & power).
431 -+# Values of 1 or less effectively disable caching.
432 -+# c.HistoryManager.db_cache_size = 0
433 -+
434 -+#------------------------------------------------------------------------------
435 -+# ProfileDir configuration
436 -+#------------------------------------------------------------------------------
437 -+
438 -+# An object to manage the profile directory and its resources.
439 -+#
440 -+# The profile directory is used by all IPython applications, to manage
441 -+# configuration, logging and security.
442 -+#
443 -+# This object knows how to find, create and manage these directories. This
444 -+# should be used by any code that wants to handle profiles.
445 -+
446 -+# Set the profile location directly. This overrides the logic used by the
447 -+# `profile` option.
448 -+# c.ProfileDir.location = ''
449 -+
450 -+#------------------------------------------------------------------------------
451 -+# PlainTextFormatter configuration
452 -+#------------------------------------------------------------------------------
453 -+
454 -+# The default pretty-printer.
455 -+#
456 -+# This uses :mod:`IPython.lib.pretty` to compute the format data of the object.
457 -+# If the object cannot be pretty printed, :func:`repr` is used. See the
458 -+# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty
459 -+# printers. Here is a simple example::
460 -+#
461 -+# def dtype_pprinter(obj, p, cycle):
462 -+# if cycle:
463 -+# return p.text('dtype(...)')
464 -+# if hasattr(obj, 'fields'):
465 -+# if obj.fields is None:
466 -+# p.text(repr(obj))
467 -+# else:
468 -+# p.begin_group(7, 'dtype([')
469 -+# for i, field in enumerate(obj.descr):
470 -+# if i > 0:
471 -+# p.text(',')
472 -+# p.breakable()
473 -+# p.pretty(field)
474 -+# p.end_group(7, '])')
475 -+
476 -+# PlainTextFormatter will inherit config from: BaseFormatter
477 -+
478 -+#
479 -+# c.PlainTextFormatter.newline = '\n'
480 -+
481 -+#
482 -+# c.PlainTextFormatter.max_width = 79
483 -+
484 -+#
485 -+# c.PlainTextFormatter.verbose = False
486 -+
487 -+#
488 -+# c.PlainTextFormatter.pprint = True
489 -+
490 -+#
491 -+# c.PlainTextFormatter.singleton_printers = {}
492 -+
493 -+#
494 -+# c.PlainTextFormatter.type_printers = {}
495 -+
496 -+# Truncate large collections (lists, dicts, tuples, sets) to this size.
497 -+#
498 -+# Set to 0 to disable truncation.
499 -+# c.PlainTextFormatter.max_seq_length = 1000
500 -+
501 -+#
502 -+# c.PlainTextFormatter.deferred_printers = {}
503 -+
504 -+#
505 -+# c.PlainTextFormatter.float_precision = ''
506 -+
507 -+#------------------------------------------------------------------------------
508 -+# IPCompleter configuration
509 -+#------------------------------------------------------------------------------
510 -+
511 -+# Extension of the completer class with IPython-specific features
512 -+
513 -+# IPCompleter will inherit config from: Completer
514 -+
515 -+# Whether to merge completion results into a single list
516 -+#
517 -+# If False, only the completion results from the first non-empty completer will
518 -+# be returned.
519 -+# c.IPCompleter.merge_completions = True
520 -+
521 -+# Activate greedy completion
522 -+#
523 -+# This will enable completion on elements of lists, results of function calls,
524 -+# etc., but can be unsafe because the code is actually evaluated on TAB.
525 -+# c.IPCompleter.greedy = False
526 -+
527 -+# Instruct the completer to use __all__ for the completion
528 -+#
529 -+# Specifically, when completing on ``object.<tab>``.
530 -+#
531 -+# When True: only those names in obj.__all__ will be included.
532 -+#
533 -+# When False [default]: the __all__ attribute is ignored
534 -+# c.IPCompleter.limit_to__all__ = False
535 -+
536 -+# Instruct the completer to omit private method names
537 -+#
538 -+# Specifically, when completing on ``object.<tab>``.
539 -+#
540 -+# When 2 [default]: all names that start with '_' will be excluded.
541 -+#
542 -+# When 1: all 'magic' names (``__foo__``) will be excluded.
543 -+#
544 -+# When 0: nothing will be excluded.
545 -+# c.IPCompleter.omit__names = 2
546 -+
547 -+#------------------------------------------------------------------------------
548 -+# ScriptMagics configuration
549 -+#------------------------------------------------------------------------------
550 -+
551 -+# Magics for talking to scripts
552 -+#
553 -+# This defines a base `%%script` cell magic for running a cell with a program in
554 -+# a subprocess, and registers a few top-level magics that call %%script with
555 -+# common interpreters.
556 -+
557 -+# Extra script cell magics to define
558 -+#
559 -+# This generates simple wrappers of `%%script foo` as `%%foo`.
560 -+#
561 -+# If you want to add script magics that aren't on your path, specify them in
562 -+# script_paths
563 -+# c.ScriptMagics.script_magics = []
564 -+
565 -+# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'
566 -+#
567 -+# Only necessary for items in script_magics where the default path will not find
568 -+# the right interpreter.
569 -+# c.ScriptMagics.script_paths = {}
570 -+
571 -+#------------------------------------------------------------------------------
572 -+# StoreMagics configuration
573 -+#------------------------------------------------------------------------------
574 -+
575 -+# Lightweight persistence for python variables.
576 -+#
577 -+# Provides the %store magic.
578 -+
579 -+# If True, any %store-d variables will be automatically restored when IPython
580 -+# starts.
581 -+# c.StoreMagics.autorestore = False
582 -
583 ---- jupyter_core/tests/dotipython/profile_default/ipython_console_config.py
584 -+++ jupyter_core/tests/dotipython/profile_default/ipython_console_config.py
585 -@@ -0,0 +1,531 @@
586 -+# Configuration file for ipython-console.
587 -+
588 -+c = get_config()
589 -+
590 -+#------------------------------------------------------------------------------
591 -+# ZMQTerminalIPythonApp configuration
592 -+#------------------------------------------------------------------------------
593 -+
594 -+# ZMQTerminalIPythonApp will inherit config from: TerminalIPythonApp,
595 -+# BaseIPythonApplication, Application, InteractiveShellApp, IPythonConsoleApp,
596 -+# ConnectionFileMixin
597 -+
598 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
599 -+# hidden from tools like %who?
600 -+# c.ZMQTerminalIPythonApp.hide_initial_ns = True
601 -+
602 -+# set the heartbeat port [default: random]
603 -+# c.ZMQTerminalIPythonApp.hb_port = 0
604 -+
605 -+# A list of dotted module names of IPython extensions to load.
606 -+# c.ZMQTerminalIPythonApp.extensions = []
607 -+
608 -+# Execute the given command string.
609 -+# c.ZMQTerminalIPythonApp.code_to_run = ''
610 -+
611 -+# Path to the ssh key to use for logging in to the ssh server.
612 -+# c.ZMQTerminalIPythonApp.sshkey = ''
613 -+
614 -+# The date format used by logging formatters for %(asctime)s
615 -+# c.ZMQTerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
616 -+
617 -+# set the control (ROUTER) port [default: random]
618 -+# c.ZMQTerminalIPythonApp.control_port = 0
619 -+
620 -+# Reraise exceptions encountered loading IPython extensions?
621 -+# c.ZMQTerminalIPythonApp.reraise_ipython_extension_failures = False
622 -+
623 -+# Set the log level by value or name.
624 -+# c.ZMQTerminalIPythonApp.log_level = 30
625 -+
626 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
627 -+# startup.
628 -+# c.ZMQTerminalIPythonApp.exec_PYTHONSTARTUP = True
629 -+
630 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
631 -+# matplotlib backend and loop integration.
632 -+# c.ZMQTerminalIPythonApp.pylab = None
633 -+
634 -+# Run the module as a script.
635 -+# c.ZMQTerminalIPythonApp.module_to_run = ''
636 -+
637 -+# Whether to display a banner upon starting IPython.
638 -+# c.ZMQTerminalIPythonApp.display_banner = True
639 -+
640 -+# dotted module name of an IPython extension to load.
641 -+# c.ZMQTerminalIPythonApp.extra_extension = ''
642 -+
643 -+# Create a massive crash report when IPython encounters what may be an internal
644 -+# error. The default is to append a short message to the usual traceback
645 -+# c.ZMQTerminalIPythonApp.verbose_crash = False
646 -+
647 -+# Whether to overwrite existing config files when copying
648 -+# c.ZMQTerminalIPythonApp.overwrite = False
649 -+
650 -+# The IPython profile to use.
651 -+# c.ZMQTerminalIPythonApp.profile = 'default'
652 -+
653 -+# If a command or file is given via the command-line, e.g. 'ipython foo.py',
654 -+# start an interactive shell after executing the file or command.
655 -+# c.ZMQTerminalIPythonApp.force_interact = False
656 -+
657 -+# List of files to run at IPython startup.
658 -+# c.ZMQTerminalIPythonApp.exec_files = []
659 -+
660 -+# Start IPython quickly by skipping the loading of config files.
661 -+# c.ZMQTerminalIPythonApp.quick = False
662 -+
663 -+# The Logging format template
664 -+# c.ZMQTerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
665 -+
666 -+# Whether to install the default config files into the profile dir. If a new
667 -+# profile is being created, and IPython contains config files for that profile,
668 -+# then they will be staged into the new directory. Otherwise, default config
669 -+# files will be automatically generated.
670 -+# c.ZMQTerminalIPythonApp.copy_config_files = False
671 -+
672 -+# set the stdin (ROUTER) port [default: random]
673 -+# c.ZMQTerminalIPythonApp.stdin_port = 0
674 -+
675 -+# Path to an extra config file to load.
676 -+#
677 -+# If specified, load this config file in addition to any other IPython config.
678 -+# c.ZMQTerminalIPythonApp.extra_config_file = ''
679 -+
680 -+# lines of code to run at IPython startup.
681 -+# c.ZMQTerminalIPythonApp.exec_lines = []
682 -+
683 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
684 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
685 -+# c.ZMQTerminalIPythonApp.gui = None
686 -+
687 -+# A file to be run
688 -+# c.ZMQTerminalIPythonApp.file_to_run = ''
689 -+
690 -+# Configure matplotlib for interactive use with the default matplotlib backend.
691 -+# c.ZMQTerminalIPythonApp.matplotlib = None
692 -+
693 -+# Suppress warning messages about legacy config files
694 -+# c.ZMQTerminalIPythonApp.ignore_old_config = False
695 -+
696 -+# set the iopub (PUB) port [default: random]
697 -+# c.ZMQTerminalIPythonApp.iopub_port = 0
698 -+
699 -+#
700 -+# c.ZMQTerminalIPythonApp.transport = 'tcp'
701 -+
702 -+# JSON file in which to store connection info [default: kernel-<pid>.json]
703 -+#
704 -+# This file will contain the IP, ports, and authentication key needed to connect
705 -+# clients to this kernel. By default, this file will be created in the security
706 -+# dir of the current profile, but can be specified by absolute path.
707 -+# c.ZMQTerminalIPythonApp.connection_file = ''
708 -+
709 -+# The name of the IPython directory. This directory is used for logging
710 -+# configuration (through profiles), history storage, etc. The default is usually
711 -+# $HOME/.ipython. This option can also be specified through the environment
712 -+# variable IPYTHONDIR.
713 -+# c.ZMQTerminalIPythonApp.ipython_dir = ''
714 -+
715 -+# The SSH server to use to connect to the kernel.
716 -+# c.ZMQTerminalIPythonApp.sshserver = ''
717 -+
718 -+# Set to display confirmation dialog on exit. You can always use 'exit' or
719 -+# 'quit', to force a direct exit without any confirmation.
720 -+# c.ZMQTerminalIPythonApp.confirm_exit = True
721 -+
722 -+# set the shell (ROUTER) port [default: random]
723 -+# c.ZMQTerminalIPythonApp.shell_port = 0
724 -+
725 -+# The name of the default kernel to start.
726 -+# c.ZMQTerminalIPythonApp.kernel_name = 'python'
727 -+
728 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
729 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
730 -+#
731 -+# When False, pylab mode should not import any names into the user namespace.
732 -+# c.ZMQTerminalIPythonApp.pylab_import_all = True
733 -+
734 -+# Connect to an already running kernel
735 -+# c.ZMQTerminalIPythonApp.existing = ''
736 -+
737 -+# Set the kernel's IP address [default localhost]. If the IP address is
738 -+# something other than localhost, then Consoles on other machines will be able
739 -+# to connect to the Kernel, so be careful!
740 -+# c.ZMQTerminalIPythonApp.ip = ''
741 -+
742 -+#------------------------------------------------------------------------------
743 -+# ZMQTerminalInteractiveShell configuration
744 -+#------------------------------------------------------------------------------
745 -+
746 -+# A subclass of TerminalInteractiveShell that uses the 0MQ kernel
747 -+
748 -+# ZMQTerminalInteractiveShell will inherit config from:
749 -+# TerminalInteractiveShell, InteractiveShell
750 -+
751 -+#
752 -+# c.ZMQTerminalInteractiveShell.history_length = 10000
753 -+
754 -+# auto editing of files with syntax errors.
755 -+# c.ZMQTerminalInteractiveShell.autoedit_syntax = False
756 -+
757 -+# If True, anything that would be passed to the pager will be displayed as
758 -+# regular output instead.
759 -+# c.ZMQTerminalInteractiveShell.display_page = False
760 -+
761 -+#
762 -+# c.ZMQTerminalInteractiveShell.debug = False
763 -+
764 -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
765 -+# interactively (displaying output from expressions).
766 -+# c.ZMQTerminalInteractiveShell.ast_node_interactivity = 'last_expr'
767 -+
768 -+# Start logging to the default log file in overwrite mode. Use `logappend` to
769 -+# specify a log file to **append** logs to.
770 -+# c.ZMQTerminalInteractiveShell.logstart = False
771 -+
772 -+# Set the size of the output cache. The default is 1000, you can change it
773 -+# permanently in your config file. Setting it to 0 completely disables the
774 -+# caching system, and the minimum value accepted is 20 (if you provide a value
775 -+# less than 20, it is reset to 0 and a warning is issued). This limit is
776 -+# defined because otherwise you'll spend more time re-flushing a too small cache
777 -+# than working
778 -+# c.ZMQTerminalInteractiveShell.cache_size = 1000
779 -+
780 -+# The shell program to be used for paging.
781 -+# c.ZMQTerminalInteractiveShell.pager = 'less'
782 -+
783 -+# The name of the logfile to use.
784 -+# c.ZMQTerminalInteractiveShell.logfile = ''
785 -+
786 -+# Save multi-line entries as one entry in readline history
787 -+# c.ZMQTerminalInteractiveShell.multiline_history = True
788 -+
789 -+#
790 -+# c.ZMQTerminalInteractiveShell.readline_remove_delims = '-/~'
791 -+
792 -+# Enable magic commands to be called without the leading %.
793 -+# c.ZMQTerminalInteractiveShell.automagic = True
794 -+
795 -+# Prefix to add to outputs coming from clients other than this one.
796 -+#
797 -+# Only relevant if include_other_output is True.
798 -+# c.ZMQTerminalInteractiveShell.other_output_prefix = '[remote] '
799 -+
800 -+#
801 -+# c.ZMQTerminalInteractiveShell.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']
802 -+
803 -+# Use colors for displaying information about objects. Because this information
804 -+# is passed through a pager (like 'less'), and some pagers get confused with
805 -+# color codes, this capability can be turned off.
806 -+# c.ZMQTerminalInteractiveShell.color_info = True
807 -+
808 -+# Callable object called via 'callable' image handler with one argument, `data`,
809 -+# which is `msg["content"]["data"]` where `msg` is the message from iopub
810 -+# channel. For exmaple, you can find base64 encoded PNG data as
811 -+# `data['image/png']`.
812 -+# c.ZMQTerminalInteractiveShell.callable_image_handler = None
813 -+
814 -+# Command to invoke an image viewer program when you are using 'stream' image
815 -+# handler. This option is a list of string where the first element is the
816 -+# command itself and reminders are the options for the command. Raw image data
817 -+# is given as STDIN to the program.
818 -+# c.ZMQTerminalInteractiveShell.stream_image_handler = []
819 -+
820 -+#
821 -+# c.ZMQTerminalInteractiveShell.separate_out2 = ''
822 -+
823 -+# Autoindent IPython code entered interactively.
824 -+# c.ZMQTerminalInteractiveShell.autoindent = True
825 -+
826 -+# The part of the banner to be printed after the profile
827 -+# c.ZMQTerminalInteractiveShell.banner2 = ''
828 -+
829 -+# Don't call post-execute functions that have failed in the past.
830 -+# c.ZMQTerminalInteractiveShell.disable_failing_post_execute = False
831 -+
832 -+# Deprecated, use PromptManager.out_template
833 -+# c.ZMQTerminalInteractiveShell.prompt_out = 'Out[\\#]: '
834 -+
835 -+#
836 -+# c.ZMQTerminalInteractiveShell.object_info_string_level = 0
837 -+
838 -+#
839 -+# c.ZMQTerminalInteractiveShell.separate_out = ''
840 -+
841 -+# Automatically call the pdb debugger after every exception.
842 -+# c.ZMQTerminalInteractiveShell.pdb = False
843 -+
844 -+# Deprecated, use PromptManager.in_template
845 -+# c.ZMQTerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
846 -+
847 -+#
848 -+# c.ZMQTerminalInteractiveShell.separate_in = '\n'
849 -+
850 -+#
851 -+# c.ZMQTerminalInteractiveShell.wildcards_case_sensitive = True
852 -+
853 -+# Enable auto setting the terminal title.
854 -+# c.ZMQTerminalInteractiveShell.term_title = False
855 -+
856 -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
857 -+# module which reloads changes in modules recursively (it replaces the reload()
858 -+# function, so you don't need to change anything to use it). deep_reload()
859 -+# forces a full reload of modules whose code may have changed, which the default
860 -+# reload() function does not. When deep_reload is off, IPython will use the
861 -+# normal reload(), but deep_reload will still be available as dreload().
862 -+# c.ZMQTerminalInteractiveShell.deep_reload = False
863 -+
864 -+# Deprecated, use PromptManager.in2_template
865 -+# c.ZMQTerminalInteractiveShell.prompt_in2 = ' .\\D.: '
866 -+
867 -+# Whether to include output from clients other than this one sharing the same
868 -+# kernel.
869 -+#
870 -+# Outputs are not displayed until enter is pressed.
871 -+# c.ZMQTerminalInteractiveShell.include_other_output = False
872 -+
873 -+# Preferred object representation MIME type in order. First matched MIME type
874 -+# will be used.
875 -+# c.ZMQTerminalInteractiveShell.mime_preference = ['image/png', 'image/jpeg', 'image/svg+xml']
876 -+
877 -+#
878 -+# c.ZMQTerminalInteractiveShell.readline_use = True
879 -+
880 -+# Make IPython automatically call any callable object even if you didn't type
881 -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
882 -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
883 -+# it is not applied if there are no more arguments on the line, and '2' for
884 -+# 'full' autocall, where all callable objects are automatically called (even if
885 -+# no arguments are present).
886 -+# c.ZMQTerminalInteractiveShell.autocall = 0
887 -+
888 -+# The part of the banner to be printed before the profile
889 -+# c.ZMQTerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\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'
890 -+
891 -+# Handler for image type output. This is useful, for example, when connecting
892 -+# to the kernel in which pylab inline backend is activated. There are four
893 -+# handlers defined. 'PIL': Use Python Imaging Library to popup image; 'stream':
894 -+# Use an external program to show the image. Image will be fed into the STDIN
895 -+# of the program. You will need to configure `stream_image_handler`;
896 -+# 'tempfile': Use an external program to show the image. Image will be saved in
897 -+# a temporally file and the program is called with the temporally file. You
898 -+# will need to configure `tempfile_image_handler`; 'callable': You can set any
899 -+# Python callable which is called with the image data. You will need to
900 -+# configure `callable_image_handler`.
901 -+# c.ZMQTerminalInteractiveShell.image_handler = None
902 -+
903 -+# Set the color scheme (NoColor, Linux, or LightBG).
904 -+# c.ZMQTerminalInteractiveShell.colors = 'LightBG'
905 -+
906 -+# Set the editor used by IPython (default to $EDITOR/vi/notepad).
907 -+# c.ZMQTerminalInteractiveShell.editor = 'mate -w'
908 -+
909 -+# Show rewritten input, e.g. for autocall.
910 -+# c.ZMQTerminalInteractiveShell.show_rewritten_input = True
911 -+
912 -+#
913 -+# c.ZMQTerminalInteractiveShell.xmode = 'Context'
914 -+
915 -+#
916 -+# c.ZMQTerminalInteractiveShell.quiet = False
917 -+
918 -+# A list of ast.NodeTransformer subclass instances, which will be applied to
919 -+# user input before code is run.
920 -+# c.ZMQTerminalInteractiveShell.ast_transformers = []
921 -+
922 -+#
923 -+# c.ZMQTerminalInteractiveShell.ipython_dir = ''
924 -+
925 -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
926 -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
927 -+# direct exit without any confirmation.
928 -+# c.ZMQTerminalInteractiveShell.confirm_exit = True
929 -+
930 -+# Deprecated, use PromptManager.justify
931 -+# c.ZMQTerminalInteractiveShell.prompts_pad_left = True
932 -+
933 -+# Timeout for giving up on a kernel (in seconds).
934 -+#
935 -+# On first connect and restart, the console tests whether the kernel is running
936 -+# and responsive by sending kernel_info_requests. This sets the timeout in
937 -+# seconds for how long the kernel can take before being presumed dead.
938 -+# c.ZMQTerminalInteractiveShell.kernel_timeout = 60
939 -+
940 -+# Number of lines of your screen, used to control printing of very long strings.
941 -+# Strings longer than this number of lines will be sent through a pager instead
942 -+# of directly printed. The default value for this is 0, which means IPython
943 -+# will auto-detect your screen size every time it needs to print certain
944 -+# potentially long strings (this doesn't change the behavior of the 'print'
945 -+# keyword, it's only triggered internally). If for some reason this isn't
946 -+# working well (it needs curses support), specify it yourself. Otherwise don't
947 -+# change the default.
948 -+# c.ZMQTerminalInteractiveShell.screen_length = 0
949 -+
950 -+# Start logging to the given file in append mode. Use `logfile` to specify a log
951 -+# file to **overwrite** logs to.
952 -+# c.ZMQTerminalInteractiveShell.logappend = ''
953 -+
954 -+# Command to invoke an image viewer program when you are using 'tempfile' image
955 -+# handler. This option is a list of string where the first element is the
956 -+# command itself and reminders are the options for the command. You can use
957 -+# {file} and {format} in the string to represent the location of the generated
958 -+# image file and image format.
959 -+# c.ZMQTerminalInteractiveShell.tempfile_image_handler = []
960 -+
961 -+#------------------------------------------------------------------------------
962 -+# KernelManager configuration
963 -+#------------------------------------------------------------------------------
964 -+
965 -+# Manages a single kernel in a subprocess on this host.
966 -+#
967 -+# This version starts kernels with Popen.
968 -+
969 -+# KernelManager will inherit config from: ConnectionFileMixin
970 -+
971 -+# set the heartbeat port [default: random]
972 -+# c.KernelManager.hb_port = 0
973 -+
974 -+# set the stdin (ROUTER) port [default: random]
975 -+# c.KernelManager.stdin_port = 0
976 -+
977 -+#
978 -+# c.KernelManager.transport = 'tcp'
979 -+
980 -+# JSON file in which to store connection info [default: kernel-<pid>.json]
981 -+#
982 -+# This file will contain the IP, ports, and authentication key needed to connect
983 -+# clients to this kernel. By default, this file will be created in the security
984 -+# dir of the current profile, but can be specified by absolute path.
985 -+# c.KernelManager.connection_file = ''
986 -+
987 -+# set the control (ROUTER) port [default: random]
988 -+# c.KernelManager.control_port = 0
989 -+
990 -+# set the shell (ROUTER) port [default: random]
991 -+# c.KernelManager.shell_port = 0
992 -+
993 -+# Should we autorestart the kernel if it dies.
994 -+# c.KernelManager.autorestart = False
995 -+
996 -+# DEPRECATED: Use kernel_name instead.
997 -+#
998 -+# The Popen Command to launch the kernel. Override this if you have a custom
999 -+# kernel. If kernel_cmd is specified in a configuration file, IPython does not
1000 -+# pass any arguments to the kernel, because it cannot make any assumptions about
1001 -+# the arguments that the kernel understands. In particular, this means that the
1002 -+# kernel does not receive the option --debug if it given on the IPython command
1003 -+# line.
1004 -+# c.KernelManager.kernel_cmd = []
1005 -+
1006 -+# Set the kernel's IP address [default localhost]. If the IP address is
1007 -+# something other than localhost, then Consoles on other machines will be able
1008 -+# to connect to the Kernel, so be careful!
1009 -+# c.KernelManager.ip = ''
1010 -+
1011 -+# set the iopub (PUB) port [default: random]
1012 -+# c.KernelManager.iopub_port = 0
1013 -+
1014 -+#------------------------------------------------------------------------------
1015 -+# ProfileDir configuration
1016 -+#------------------------------------------------------------------------------
1017 -+
1018 -+# An object to manage the profile directory and its resources.
1019 -+#
1020 -+# The profile directory is used by all IPython applications, to manage
1021 -+# configuration, logging and security.
1022 -+#
1023 -+# This object knows how to find, create and manage these directories. This
1024 -+# should be used by any code that wants to handle profiles.
1025 -+
1026 -+# Set the profile location directly. This overrides the logic used by the
1027 -+# `profile` option.
1028 -+# c.ProfileDir.location = ''
1029 -+
1030 -+#------------------------------------------------------------------------------
1031 -+# Session configuration
1032 -+#------------------------------------------------------------------------------
1033 -+
1034 -+# Object for handling serialization and sending of messages.
1035 -+#
1036 -+# The Session object handles building messages and sending them with ZMQ sockets
1037 -+# or ZMQStream objects. Objects can communicate with each other over the
1038 -+# network via Session objects, and only need to work with the dict-based IPython
1039 -+# message spec. The Session will handle serialization/deserialization, security,
1040 -+# and metadata.
1041 -+#
1042 -+# Sessions support configurable serialization via packer/unpacker traits, and
1043 -+# signing with HMAC digests via the key/keyfile traits.
1044 -+#
1045 -+# Parameters ----------
1046 -+#
1047 -+# debug : bool
1048 -+# whether to trigger extra debugging statements
1049 -+# packer/unpacker : str : 'json', 'pickle' or import_string
1050 -+# importstrings for methods to serialize message parts. If just
1051 -+# 'json' or 'pickle', predefined JSON and pickle packers will be used.
1052 -+# Otherwise, the entire importstring must be used.
1053 -+#
1054 -+# The functions must accept at least valid JSON input, and output *bytes*.
1055 -+#
1056 -+# For example, to use msgpack:
1057 -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb'
1058 -+# pack/unpack : callables
1059 -+# You can also set the pack/unpack callables for serialization directly.
1060 -+# session : bytes
1061 -+# the ID of this Session object. The default is to generate a new UUID.
1062 -+# username : unicode
1063 -+# username added to message headers. The default is to ask the OS.
1064 -+# key : bytes
1065 -+# The key used to initialize an HMAC signature. If unset, messages
1066 -+# will not be signed or checked.
1067 -+# keyfile : filepath
1068 -+# The file containing a key. If this is set, `key` will be initialized
1069 -+# to the contents of the file.
1070 -+
1071 -+# The digest scheme used to construct the message signatures. Must have the form
1072 -+# 'hmac-HASH'.
1073 -+# c.Session.signature_scheme = 'hmac-sha256'
1074 -+
1075 -+# The maximum number of digests to remember.
1076 -+#
1077 -+# The digest history will be culled when it exceeds this value.
1078 -+# c.Session.digest_history_size = 65536
1079 -+
1080 -+# The name of the unpacker for unserializing messages. Only used with custom
1081 -+# functions for `packer`.
1082 -+# c.Session.unpacker = 'json'
1083 -+
1084 -+# The name of the packer for serializing messages. Should be one of 'json',
1085 -+# 'pickle', or an import name for a custom callable serializer.
1086 -+# c.Session.packer = 'json'
1087 -+
1088 -+# Username for the Session. Default is your system username.
1089 -+# c.Session.username = 'minrk'
1090 -+
1091 -+# Debug output in the Session
1092 -+# c.Session.debug = False
1093 -+
1094 -+# path to file containing execution key.
1095 -+# c.Session.keyfile = ''
1096 -+
1097 -+# The maximum number of items for a container to be introspected for custom
1098 -+# serialization. Containers larger than this are pickled outright.
1099 -+# c.Session.item_threshold = 64
1100 -+
1101 -+# Threshold (in bytes) beyond which an object's buffer should be extracted to
1102 -+# avoid pickling.
1103 -+# c.Session.buffer_threshold = 1024
1104 -+
1105 -+# The UUID identifying this session.
1106 -+# c.Session.session = ''
1107 -+
1108 -+# Threshold (in bytes) beyond which a buffer should be sent without copying.
1109 -+# c.Session.copy_threshold = 65536
1110 -+
1111 -+# execution key, for signing messages.
1112 -+# c.Session.key = b''
1113 -+
1114 -+# Metadata dictionary, which serves as the default top-level metadata dict for
1115 -+# each message.
1116 -+# c.Session.metadata = {}
1117 -
1118 ---- jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py
1119 -+++ jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py
1120 -@@ -0,0 +1,408 @@
1121 -+# Configuration file for ipython-kernel.
1122 -+
1123 -+c = get_config()
1124 -+
1125 -+#------------------------------------------------------------------------------
1126 -+# IPKernelApp configuration
1127 -+#------------------------------------------------------------------------------
1128 -+
1129 -+# IPython: an enhanced interactive Python shell.
1130 -+
1131 -+# IPKernelApp will inherit config from: BaseIPythonApplication, Application,
1132 -+# InteractiveShellApp, ConnectionFileMixin
1133 -+
1134 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
1135 -+# hidden from tools like %who?
1136 -+# c.IPKernelApp.hide_initial_ns = True
1137 -+
1138 -+# The importstring for the DisplayHook factory
1139 -+# c.IPKernelApp.displayhook_class = 'IPython.kernel.zmq.displayhook.ZMQDisplayHook'
1140 -+
1141 -+# A list of dotted module names of IPython extensions to load.
1142 -+# c.IPKernelApp.extensions = []
1143 -+
1144 -+# Execute the given command string.
1145 -+# c.IPKernelApp.code_to_run = ''
1146 -+
1147 -+# redirect stderr to the null device
1148 -+# c.IPKernelApp.no_stderr = False
1149 -+
1150 -+# The date format used by logging formatters for %(asctime)s
1151 -+# c.IPKernelApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
1152 -+
1153 -+# Whether to create profile dir if it doesn't exist
1154 -+# c.IPKernelApp.auto_create = False
1155 -+
1156 -+# Reraise exceptions encountered loading IPython extensions?
1157 -+# c.IPKernelApp.reraise_ipython_extension_failures = False
1158 -+
1159 -+# Set the log level by value or name.
1160 -+# c.IPKernelApp.log_level = 30
1161 -+
1162 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
1163 -+# startup.
1164 -+# c.IPKernelApp.exec_PYTHONSTARTUP = True
1165 -+
1166 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
1167 -+# matplotlib backend and loop integration.
1168 -+# c.IPKernelApp.pylab = None
1169 -+
1170 -+# Run the module as a script.
1171 -+# c.IPKernelApp.module_to_run = ''
1172 -+
1173 -+# The importstring for the OutStream factory
1174 -+# c.IPKernelApp.outstream_class = 'IPython.kernel.zmq.iostream.OutStream'
1175 -+
1176 -+# dotted module name of an IPython extension to load.
1177 -+# c.IPKernelApp.extra_extension = ''
1178 -+
1179 -+# Create a massive crash report when IPython encounters what may be an internal
1180 -+# error. The default is to append a short message to the usual traceback
1181 -+# c.IPKernelApp.verbose_crash = False
1182 -+
1183 -+# Whether to overwrite existing config files when copying
1184 -+# c.IPKernelApp.overwrite = False
1185 -+
1186 -+# The IPython profile to use.
1187 -+# c.IPKernelApp.profile = 'default'
1188 -+
1189 -+# List of files to run at IPython startup.
1190 -+# c.IPKernelApp.exec_files = []
1191 -+
1192 -+# The Logging format template
1193 -+# c.IPKernelApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
1194 -+
1195 -+# Whether to install the default config files into the profile dir. If a new
1196 -+# profile is being created, and IPython contains config files for that profile,
1197 -+# then they will be staged into the new directory. Otherwise, default config
1198 -+# files will be automatically generated.
1199 -+# c.IPKernelApp.copy_config_files = False
1200 -+
1201 -+# set the stdin (ROUTER) port [default: random]
1202 -+# c.IPKernelApp.stdin_port = 0
1203 -+
1204 -+# Path to an extra config file to load.
1205 -+#
1206 -+# If specified, load this config file in addition to any other IPython config.
1207 -+# c.IPKernelApp.extra_config_file = ''
1208 -+
1209 -+# lines of code to run at IPython startup.
1210 -+# c.IPKernelApp.exec_lines = []
1211 -+
1212 -+# set the control (ROUTER) port [default: random]
1213 -+# c.IPKernelApp.control_port = 0
1214 -+
1215 -+# set the heartbeat port [default: random]
1216 -+# c.IPKernelApp.hb_port = 0
1217 -+
1218 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
1219 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
1220 -+# c.IPKernelApp.gui = None
1221 -+
1222 -+# A file to be run
1223 -+# c.IPKernelApp.file_to_run = ''
1224 -+
1225 -+# The name of the IPython directory. This directory is used for logging
1226 -+# configuration (through profiles), history storage, etc. The default is usually
1227 -+# $HOME/.ipython. This option can also be specified through the environment
1228 -+# variable IPYTHONDIR.
1229 -+# c.IPKernelApp.ipython_dir = ''
1230 -+
1231 -+# kill this process if its parent dies. On Windows, the argument specifies the
1232 -+# HANDLE of the parent process, otherwise it is simply boolean.
1233 -+# c.IPKernelApp.parent_handle = 0
1234 -+
1235 -+# Configure matplotlib for interactive use with the default matplotlib backend.
1236 -+# c.IPKernelApp.matplotlib = None
1237 -+
1238 -+# set the iopub (PUB) port [default: random]
1239 -+# c.IPKernelApp.iopub_port = 0
1240 -+
1241 -+# redirect stdout to the null device
1242 -+# c.IPKernelApp.no_stdout = False
1243 -+
1244 -+#
1245 -+# c.IPKernelApp.transport = 'tcp'
1246 -+
1247 -+# JSON file in which to store connection info [default: kernel-<pid>.json]
1248 -+#
1249 -+# This file will contain the IP, ports, and authentication key needed to connect
1250 -+# clients to this kernel. By default, this file will be created in the security
1251 -+# dir of the current profile, but can be specified by absolute path.
1252 -+# c.IPKernelApp.connection_file = ''
1253 -+
1254 -+# The Kernel subclass to be used.
1255 -+#
1256 -+# This should allow easy re-use of the IPKernelApp entry point to configure and
1257 -+# launch kernels other than IPython's own.
1258 -+# c.IPKernelApp.kernel_class = <class 'IPython.kernel.zmq.ipkernel.IPythonKernel'>
1259 -+
1260 -+# ONLY USED ON WINDOWS Interrupt this process when the parent is signaled.
1261 -+# c.IPKernelApp.interrupt = 0
1262 -+
1263 -+# set the shell (ROUTER) port [default: random]
1264 -+# c.IPKernelApp.shell_port = 0
1265 -+
1266 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
1267 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
1268 -+#
1269 -+# When False, pylab mode should not import any names into the user namespace.
1270 -+# c.IPKernelApp.pylab_import_all = True
1271 -+
1272 -+# Set the kernel's IP address [default localhost]. If the IP address is
1273 -+# something other than localhost, then Consoles on other machines will be able
1274 -+# to connect to the Kernel, so be careful!
1275 -+# c.IPKernelApp.ip = ''
1276 -+
1277 -+#------------------------------------------------------------------------------
1278 -+# IPythonKernel configuration
1279 -+#------------------------------------------------------------------------------
1280 -+
1281 -+# IPythonKernel will inherit config from: Kernel
1282 -+
1283 -+#
1284 -+# c.IPythonKernel._execute_sleep = 0.0005
1285 -+
1286 -+# Whether to use appnope for compatiblity with OS X App Nap.
1287 -+#
1288 -+# Only affects OS X >= 10.9.
1289 -+# c.IPythonKernel._darwin_app_nap = True
1290 -+
1291 -+#
1292 -+# c.IPythonKernel._poll_interval = 0.05
1293 -+
1294 -+#------------------------------------------------------------------------------
1295 -+# ZMQInteractiveShell configuration
1296 -+#------------------------------------------------------------------------------
1297 -+
1298 -+# A subclass of InteractiveShell for ZMQ.
1299 -+
1300 -+# ZMQInteractiveShell will inherit config from: InteractiveShell
1301 -+
1302 -+#
1303 -+# c.ZMQInteractiveShell.object_info_string_level = 0
1304 -+
1305 -+#
1306 -+# c.ZMQInteractiveShell.separate_out = ''
1307 -+
1308 -+# Automatically call the pdb debugger after every exception.
1309 -+# c.ZMQInteractiveShell.pdb = False
1310 -+
1311 -+#
1312 -+# c.ZMQInteractiveShell.ipython_dir = ''
1313 -+
1314 -+#
1315 -+# c.ZMQInteractiveShell.history_length = 10000
1316 -+
1317 -+#
1318 -+# c.ZMQInteractiveShell.readline_remove_delims = '-/~'
1319 -+
1320 -+# If True, anything that would be passed to the pager will be displayed as
1321 -+# regular output instead.
1322 -+# c.ZMQInteractiveShell.display_page = False
1323 -+
1324 -+# Deprecated, use PromptManager.in2_template
1325 -+# c.ZMQInteractiveShell.prompt_in2 = ' .\\D.: '
1326 -+
1327 -+#
1328 -+# c.ZMQInteractiveShell.separate_in = '\n'
1329 -+
1330 -+# Start logging to the default log file in overwrite mode. Use `logappend` to
1331 -+# specify a log file to **append** logs to.
1332 -+# c.ZMQInteractiveShell.logstart = False
1333 -+
1334 -+# Set the size of the output cache. The default is 1000, you can change it
1335 -+# permanently in your config file. Setting it to 0 completely disables the
1336 -+# caching system, and the minimum value accepted is 20 (if you provide a value
1337 -+# less than 20, it is reset to 0 and a warning is issued). This limit is
1338 -+# defined because otherwise you'll spend more time re-flushing a too small cache
1339 -+# than working
1340 -+# c.ZMQInteractiveShell.cache_size = 1000
1341 -+
1342 -+#
1343 -+# c.ZMQInteractiveShell.wildcards_case_sensitive = True
1344 -+
1345 -+# The name of the logfile to use.
1346 -+# c.ZMQInteractiveShell.logfile = ''
1347 -+
1348 -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
1349 -+# interactively (displaying output from expressions).
1350 -+# c.ZMQInteractiveShell.ast_node_interactivity = 'last_expr'
1351 -+
1352 -+#
1353 -+# c.ZMQInteractiveShell.debug = False
1354 -+
1355 -+#
1356 -+# c.ZMQInteractiveShell.quiet = False
1357 -+
1358 -+# Save multi-line entries as one entry in readline history
1359 -+# c.ZMQInteractiveShell.multiline_history = True
1360 -+
1361 -+# Deprecated, use PromptManager.in_template
1362 -+# c.ZMQInteractiveShell.prompt_in1 = 'In [\\#]: '
1363 -+
1364 -+# Enable magic commands to be called without the leading %.
1365 -+# c.ZMQInteractiveShell.automagic = True
1366 -+
1367 -+# The part of the banner to be printed before the profile
1368 -+# c.ZMQInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\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'
1369 -+
1370 -+# Make IPython automatically call any callable object even if you didn't type
1371 -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
1372 -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
1373 -+# it is not applied if there are no more arguments on the line, and '2' for
1374 -+# 'full' autocall, where all callable objects are automatically called (even if
1375 -+# no arguments are present).
1376 -+# c.ZMQInteractiveShell.autocall = 0
1377 -+
1378 -+#
1379 -+# c.ZMQInteractiveShell.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']
1380 -+
1381 -+# Set the color scheme (NoColor, Linux, or LightBG).
1382 -+# c.ZMQInteractiveShell.colors = 'LightBG'
1383 -+
1384 -+# Use colors for displaying information about objects. Because this information
1385 -+# is passed through a pager (like 'less'), and some pagers get confused with
1386 -+# color codes, this capability can be turned off.
1387 -+# c.ZMQInteractiveShell.color_info = True
1388 -+
1389 -+# Show rewritten input, e.g. for autocall.
1390 -+# c.ZMQInteractiveShell.show_rewritten_input = True
1391 -+
1392 -+#
1393 -+# c.ZMQInteractiveShell.xmode = 'Context'
1394 -+
1395 -+#
1396 -+# c.ZMQInteractiveShell.separate_out2 = ''
1397 -+
1398 -+# The part of the banner to be printed after the profile
1399 -+# c.ZMQInteractiveShell.banner2 = ''
1400 -+
1401 -+# Start logging to the given file in append mode. Use `logfile` to specify a log
1402 -+# file to **overwrite** logs to.
1403 -+# c.ZMQInteractiveShell.logappend = ''
1404 -+
1405 -+# Don't call post-execute functions that have failed in the past.
1406 -+# c.ZMQInteractiveShell.disable_failing_post_execute = False
1407 -+
1408 -+# Deprecated, use PromptManager.out_template
1409 -+# c.ZMQInteractiveShell.prompt_out = 'Out[\\#]: '
1410 -+
1411 -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
1412 -+# module which reloads changes in modules recursively (it replaces the reload()
1413 -+# function, so you don't need to change anything to use it). deep_reload()
1414 -+# forces a full reload of modules whose code may have changed, which the default
1415 -+# reload() function does not. When deep_reload is off, IPython will use the
1416 -+# normal reload(), but deep_reload will still be available as dreload().
1417 -+# c.ZMQInteractiveShell.deep_reload = False
1418 -+
1419 -+# Deprecated, use PromptManager.justify
1420 -+# c.ZMQInteractiveShell.prompts_pad_left = True
1421 -+
1422 -+# A list of ast.NodeTransformer subclass instances, which will be applied to
1423 -+# user input before code is run.
1424 -+# c.ZMQInteractiveShell.ast_transformers = []
1425 -+
1426 -+#------------------------------------------------------------------------------
1427 -+# ProfileDir configuration
1428 -+#------------------------------------------------------------------------------
1429 -+
1430 -+# An object to manage the profile directory and its resources.
1431 -+#
1432 -+# The profile directory is used by all IPython applications, to manage
1433 -+# configuration, logging and security.
1434 -+#
1435 -+# This object knows how to find, create and manage these directories. This
1436 -+# should be used by any code that wants to handle profiles.
1437 -+
1438 -+# Set the profile location directly. This overrides the logic used by the
1439 -+# `profile` option.
1440 -+# c.ProfileDir.location = ''
1441 -+
1442 -+#------------------------------------------------------------------------------
1443 -+# Session configuration
1444 -+#------------------------------------------------------------------------------
1445 -+
1446 -+# Object for handling serialization and sending of messages.
1447 -+#
1448 -+# The Session object handles building messages and sending them with ZMQ sockets
1449 -+# or ZMQStream objects. Objects can communicate with each other over the
1450 -+# network via Session objects, and only need to work with the dict-based IPython
1451 -+# message spec. The Session will handle serialization/deserialization, security,
1452 -+# and metadata.
1453 -+#
1454 -+# Sessions support configurable serialization via packer/unpacker traits, and
1455 -+# signing with HMAC digests via the key/keyfile traits.
1456 -+#
1457 -+# Parameters ----------
1458 -+#
1459 -+# debug : bool
1460 -+# whether to trigger extra debugging statements
1461 -+# packer/unpacker : str : 'json', 'pickle' or import_string
1462 -+# importstrings for methods to serialize message parts. If just
1463 -+# 'json' or 'pickle', predefined JSON and pickle packers will be used.
1464 -+# Otherwise, the entire importstring must be used.
1465 -+#
1466 -+# The functions must accept at least valid JSON input, and output *bytes*.
1467 -+#
1468 -+# For example, to use msgpack:
1469 -+# packer = 'msgpack.packb', unpacker='msgpack.unpackb'
1470 -+# pack/unpack : callables
1471 -+# You can also set the pack/unpack callables for serialization directly.
1472 -+# session : bytes
1473 -+# the ID of this Session object. The default is to generate a new UUID.
1474 -+# username : unicode
1475 -+# username added to message headers. The default is to ask the OS.
1476 -+# key : bytes
1477 -+# The key used to initialize an HMAC signature. If unset, messages
1478 -+# will not be signed or checked.
1479 -+# keyfile : filepath
1480 -+# The file containing a key. If this is set, `key` will be initialized
1481 -+# to the contents of the file.
1482 -+
1483 -+# The digest scheme used to construct the message signatures. Must have the form
1484 -+# 'hmac-HASH'.
1485 -+# c.Session.signature_scheme = 'hmac-sha256'
1486 -+
1487 -+# The maximum number of digests to remember.
1488 -+#
1489 -+# The digest history will be culled when it exceeds this value.
1490 -+# c.Session.digest_history_size = 65536
1491 -+
1492 -+# The name of the unpacker for unserializing messages. Only used with custom
1493 -+# functions for `packer`.
1494 -+# c.Session.unpacker = 'json'
1495 -+
1496 -+# The name of the packer for serializing messages. Should be one of 'json',
1497 -+# 'pickle', or an import name for a custom callable serializer.
1498 -+# c.Session.packer = 'json'
1499 -+
1500 -+# Username for the Session. Default is your system username.
1501 -+# c.Session.username = 'minrk'
1502 -+
1503 -+# Debug output in the Session
1504 -+# c.Session.debug = False
1505 -+
1506 -+# path to file containing execution key.
1507 -+# c.Session.keyfile = ''
1508 -+
1509 -+# The maximum number of items for a container to be introspected for custom
1510 -+# serialization. Containers larger than this are pickled outright.
1511 -+# c.Session.item_threshold = 64
1512 -+
1513 -+# Threshold (in bytes) beyond which an object's buffer should be extracted to
1514 -+# avoid pickling.
1515 -+# c.Session.buffer_threshold = 1024
1516 -+
1517 -+# The UUID identifying this session.
1518 -+# c.Session.session = ''
1519 -+
1520 -+# Threshold (in bytes) beyond which a buffer should be sent without copying.
1521 -+# c.Session.copy_threshold = 65536
1522 -+
1523 -+# execution key, for signing messages.
1524 -+# c.Session.key = b''
1525 -+
1526 -+# Metadata dictionary, which serves as the default top-level metadata dict for
1527 -+# each message.
1528 -+# c.Session.metadata = {}
1529 -
1530 ---- jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.py
1531 -+++ jupyter_core/tests/dotipython/profile_default/ipython_nbconvert_config.py
1532 -@@ -0,0 +1 @@
1533 -+c.NbConvertApp.post_processors = []
1534 -
1535 ---- jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py
1536 -+++ jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py
1537 -@@ -0,0 +1 @@
1538 -+c.NotebookApp.open_browser = False
1539 -
1540 ---- jupyter_core/tests/dotipython/profile_default/static/custom/custom.css
1541 -+++ jupyter_core/tests/dotipython/profile_default/static/custom/custom.css
1542 -@@ -0,0 +1,7 @@
1543 -+/*
1544 -+Placeholder for custom user CSS
1545 -+
1546 -+mainly to be overridden in profile/static/custom/custom.css
1547 -+
1548 -+This will always be an empty file in IPython
1549 -+*/
1550 -\ No newline at end of file
1551 -
1552 ---- jupyter_core/tests/dotipython/profile_default/static/custom/custom.js
1553 -+++ jupyter_core/tests/dotipython/profile_default/static/custom/custom.js
1554 -@@ -0,0 +1,82 @@
1555 -+// leave at least 2 line with only a star on it below, or doc generation fails
1556 -+/**
1557 -+ *
1558 -+ *
1559 -+ * Placeholder for custom user javascript
1560 -+ * mainly to be overridden in profile/static/custom/custom.js
1561 -+ * This will always be an empty file in IPython
1562 -+ *
1563 -+ * User could add any javascript in the `profile/static/custom/custom.js` file.
1564 -+ * It will be executed by the ipython notebook at load time.
1565 -+ *
1566 -+ * Same thing with `profile/static/custom/custom.css` to inject custom css into the notebook.
1567 -+ *
1568 -+ *
1569 -+ * The object available at load time depend on the version of IPython in use.
1570 -+ * there is no guaranties of API stability.
1571 -+ *
1572 -+ * The example below explain the principle, and might not be valid.
1573 -+ *
1574 -+ * Instances are created after the loading of this file and might need to be accessed using events:
1575 -+ * define([
1576 -+ * 'base/js/namespace',
1577 -+ * 'base/js/events'
1578 -+ * ], function(IPython, events) {
1579 -+ * events.on("app_initialized.NotebookApp", function () {
1580 -+ * IPython.keyboard_manager....
1581 -+ * });
1582 -+ * });
1583 -+ *
1584 -+ * __Example 1:__
1585 -+ *
1586 -+ * Create a custom button in toolbar that execute `%qtconsole` in kernel
1587 -+ * and hence open a qtconsole attached to the same kernel as the current notebook
1588 -+ *
1589 -+ * define([
1590 -+ * 'base/js/namespace',
1591 -+ * 'base/js/events'
1592 -+ * ], function(IPython, events) {
1593 -+ * events.on('app_initialized.NotebookApp', function(){
1594 -+ * IPython.toolbar.add_buttons_group([
1595 -+ * {
1596 -+ * 'label' : 'run qtconsole',
1597 -+ * 'icon' : 'icon-terminal', // select your icon from http://fortawesome.github.io/Font-Awesome/icons
1598 -+ * 'callback': function () {
1599 -+ * IPython.notebook.kernel.execute('%qtconsole')
1600 -+ * }
1601 -+ * }
1602 -+ * // add more button here if needed.
1603 -+ * ]);
1604 -+ * });
1605 -+ * });
1606 -+ *
1607 -+ * __Example 2:__
1608 -+ *
1609 -+ * At the completion of the dashboard loading, load an unofficial javascript extension
1610 -+ * that is installed in profile/static/custom/
1611 -+ *
1612 -+ * define([
1613 -+ * 'base/js/events'
1614 -+ * ], function(events) {
1615 -+ * events.on('app_initialized.DashboardApp', function(){
1616 -+ * require(['custom/unofficial_extension.js'])
1617 -+ * });
1618 -+ * });
1619 -+ *
1620 -+ * __Example 3:__
1621 -+ *
1622 -+ * Use `jQuery.getScript(url [, success(script, textStatus, jqXHR)] );`
1623 -+ * to load custom script into the notebook.
1624 -+ *
1625 -+ * // to load the metadata ui extension example.
1626 -+ * $.getScript('/static/notebook/js/celltoolbarpresets/example.js');
1627 -+ * // or
1628 -+ * // to load the metadata ui extension to control slideshow mode / reveal js for nbconvert
1629 -+ * $.getScript('/static/notebook/js/celltoolbarpresets/slideshow.js');
1630 -+ *
1631 -+ *
1632 -+ * @module IPython
1633 -+ * @namespace IPython
1634 -+ * @class customjs
1635 -+ * @static
1636 -+ */
1637 -
1638 ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_config.py
1639 -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_config.py
1640 -@@ -0,0 +1,549 @@
1641 -+# Configuration file for ipython.
1642 -+
1643 -+c = get_config()
1644 -+
1645 -+#------------------------------------------------------------------------------
1646 -+# InteractiveShellApp configuration
1647 -+#------------------------------------------------------------------------------
1648 -+
1649 -+# A Mixin for applications that start InteractiveShell instances.
1650 -+#
1651 -+# Provides configurables for loading extensions and executing files as part of
1652 -+# configuring a Shell environment.
1653 -+#
1654 -+# The following methods should be called by the :meth:`initialize` method of the
1655 -+# subclass:
1656 -+#
1657 -+# - :meth:`init_path`
1658 -+# - :meth:`init_shell` (to be implemented by the subclass)
1659 -+# - :meth:`init_gui_pylab`
1660 -+# - :meth:`init_extensions`
1661 -+# - :meth:`init_code`
1662 -+
1663 -+# lines of code to run at IPython startup.
1664 -+# c.InteractiveShellApp.exec_lines = []
1665 -+
1666 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
1667 -+# hidden from tools like %who?
1668 -+# c.InteractiveShellApp.hide_initial_ns = True
1669 -+
1670 -+# A list of dotted module names of IPython extensions to load.
1671 -+# c.InteractiveShellApp.extensions = []
1672 -+
1673 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
1674 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
1675 -+# c.InteractiveShellApp.gui = None
1676 -+
1677 -+# A file to be run
1678 -+# c.InteractiveShellApp.file_to_run = ''
1679 -+
1680 -+# Configure matplotlib for interactive use with the default matplotlib backend.
1681 -+# c.InteractiveShellApp.matplotlib = None
1682 -+
1683 -+# Reraise exceptions encountered loading IPython extensions?
1684 -+# c.InteractiveShellApp.reraise_ipython_extension_failures = False
1685 -+
1686 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
1687 -+# startup.
1688 -+# c.InteractiveShellApp.exec_PYTHONSTARTUP = True
1689 -+
1690 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
1691 -+# matplotlib backend and loop integration.
1692 -+# c.InteractiveShellApp.pylab = None
1693 -+
1694 -+# Run the module as a script.
1695 -+# c.InteractiveShellApp.module_to_run = ''
1696 -+
1697 -+# dotted module name of an IPython extension to load.
1698 -+# c.InteractiveShellApp.extra_extension = ''
1699 -+
1700 -+# List of files to run at IPython startup.
1701 -+# c.InteractiveShellApp.exec_files = []
1702 -+
1703 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
1704 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
1705 -+#
1706 -+# When False, pylab mode should not import any names into the user namespace.
1707 -+# c.InteractiveShellApp.pylab_import_all = True
1708 -+
1709 -+# Execute the given command string.
1710 -+# c.InteractiveShellApp.code_to_run = ''
1711 -+
1712 -+#------------------------------------------------------------------------------
1713 -+# TerminalIPythonApp configuration
1714 -+#------------------------------------------------------------------------------
1715 -+
1716 -+# TerminalIPythonApp will inherit config from: BaseIPythonApplication,
1717 -+# Application, InteractiveShellApp
1718 -+
1719 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
1720 -+# hidden from tools like %who?
1721 -+# c.TerminalIPythonApp.hide_initial_ns = True
1722 -+
1723 -+# A list of dotted module names of IPython extensions to load.
1724 -+# c.TerminalIPythonApp.extensions = []
1725 -+
1726 -+# Execute the given command string.
1727 -+# c.TerminalIPythonApp.code_to_run = ''
1728 -+
1729 -+# The date format used by logging formatters for %(asctime)s
1730 -+# c.TerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
1731 -+
1732 -+# Reraise exceptions encountered loading IPython extensions?
1733 -+# c.TerminalIPythonApp.reraise_ipython_extension_failures = False
1734 -+
1735 -+# Set the log level by value or name.
1736 -+# c.TerminalIPythonApp.log_level = 30
1737 -+
1738 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
1739 -+# startup.
1740 -+# c.TerminalIPythonApp.exec_PYTHONSTARTUP = True
1741 -+
1742 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
1743 -+# matplotlib backend and loop integration.
1744 -+# c.TerminalIPythonApp.pylab = None
1745 -+
1746 -+# Run the module as a script.
1747 -+# c.TerminalIPythonApp.module_to_run = ''
1748 -+
1749 -+# Whether to display a banner upon starting IPython.
1750 -+# c.TerminalIPythonApp.display_banner = True
1751 -+
1752 -+# dotted module name of an IPython extension to load.
1753 -+# c.TerminalIPythonApp.extra_extension = ''
1754 -+
1755 -+# Create a massive crash report when IPython encounters what may be an internal
1756 -+# error. The default is to append a short message to the usual traceback
1757 -+# c.TerminalIPythonApp.verbose_crash = False
1758 -+
1759 -+# Whether to overwrite existing config files when copying
1760 -+# c.TerminalIPythonApp.overwrite = False
1761 -+
1762 -+# The IPython profile to use.
1763 -+# c.TerminalIPythonApp.profile = 'default'
1764 -+
1765 -+# If a command or file is given via the command-line, e.g. 'ipython foo.py',
1766 -+# start an interactive shell after executing the file or command.
1767 -+# c.TerminalIPythonApp.force_interact = False
1768 -+
1769 -+# List of files to run at IPython startup.
1770 -+# c.TerminalIPythonApp.exec_files = []
1771 -+
1772 -+# Start IPython quickly by skipping the loading of config files.
1773 -+# c.TerminalIPythonApp.quick = False
1774 -+
1775 -+# The Logging format template
1776 -+# c.TerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
1777 -+
1778 -+# Whether to install the default config files into the profile dir. If a new
1779 -+# profile is being created, and IPython contains config files for that profile,
1780 -+# then they will be staged into the new directory. Otherwise, default config
1781 -+# files will be automatically generated.
1782 -+# c.TerminalIPythonApp.copy_config_files = False
1783 -+
1784 -+# Path to an extra config file to load.
1785 -+#
1786 -+# If specified, load this config file in addition to any other IPython config.
1787 -+# c.TerminalIPythonApp.extra_config_file = ''
1788 -+
1789 -+# lines of code to run at IPython startup.
1790 -+# c.TerminalIPythonApp.exec_lines = []
1791 -+
1792 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
1793 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
1794 -+# c.TerminalIPythonApp.gui = None
1795 -+
1796 -+# A file to be run
1797 -+# c.TerminalIPythonApp.file_to_run = ''
1798 -+
1799 -+# Configure matplotlib for interactive use with the default matplotlib backend.
1800 -+# c.TerminalIPythonApp.matplotlib = None
1801 -+
1802 -+# Suppress warning messages about legacy config files
1803 -+# c.TerminalIPythonApp.ignore_old_config = False
1804 -+
1805 -+# The name of the IPython directory. This directory is used for logging
1806 -+# configuration (through profiles), history storage, etc. The default is usually
1807 -+# $HOME/.ipython. This option can also be specified through the environment
1808 -+# variable IPYTHONDIR.
1809 -+# c.TerminalIPythonApp.ipython_dir = ''
1810 -+
1811 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
1812 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
1813 -+#
1814 -+# When False, pylab mode should not import any names into the user namespace.
1815 -+# c.TerminalIPythonApp.pylab_import_all = True
1816 -+
1817 -+#------------------------------------------------------------------------------
1818 -+# TerminalInteractiveShell configuration
1819 -+#------------------------------------------------------------------------------
1820 -+
1821 -+# TerminalInteractiveShell will inherit config from: InteractiveShell
1822 -+
1823 -+#
1824 -+# c.TerminalInteractiveShell.object_info_string_level = 0
1825 -+
1826 -+#
1827 -+# c.TerminalInteractiveShell.separate_out = ''
1828 -+
1829 -+# Automatically call the pdb debugger after every exception.
1830 -+# c.TerminalInteractiveShell.pdb = False
1831 -+
1832 -+#
1833 -+# c.TerminalInteractiveShell.ipython_dir = ''
1834 -+
1835 -+#
1836 -+# c.TerminalInteractiveShell.history_length = 10000
1837 -+
1838 -+#
1839 -+# c.TerminalInteractiveShell.readline_remove_delims = '-/~'
1840 -+
1841 -+# auto editing of files with syntax errors.
1842 -+# c.TerminalInteractiveShell.autoedit_syntax = False
1843 -+
1844 -+# If True, anything that would be passed to the pager will be displayed as
1845 -+# regular output instead.
1846 -+# c.TerminalInteractiveShell.display_page = False
1847 -+
1848 -+#
1849 -+# c.TerminalInteractiveShell.debug = False
1850 -+
1851 -+#
1852 -+# c.TerminalInteractiveShell.separate_in = '\n'
1853 -+
1854 -+# Start logging to the default log file in overwrite mode. Use `logappend` to
1855 -+# specify a log file to **append** logs to.
1856 -+# c.TerminalInteractiveShell.logstart = False
1857 -+
1858 -+# Set the size of the output cache. The default is 1000, you can change it
1859 -+# permanently in your config file. Setting it to 0 completely disables the
1860 -+# caching system, and the minimum value accepted is 20 (if you provide a value
1861 -+# less than 20, it is reset to 0 and a warning is issued). This limit is
1862 -+# defined because otherwise you'll spend more time re-flushing a too small cache
1863 -+# than working
1864 -+# c.TerminalInteractiveShell.cache_size = 1000
1865 -+
1866 -+# Set to confirm when you try to exit IPython with an EOF (Control-D in Unix,
1867 -+# Control-Z/Enter in Windows). By typing 'exit' or 'quit', you can force a
1868 -+# direct exit without any confirmation.
1869 -+# c.TerminalInteractiveShell.confirm_exit = True
1870 -+
1871 -+# The shell program to be used for paging.
1872 -+# c.TerminalInteractiveShell.pager = 'less'
1873 -+
1874 -+#
1875 -+# c.TerminalInteractiveShell.wildcards_case_sensitive = True
1876 -+
1877 -+# Deprecated, use PromptManager.justify
1878 -+# c.TerminalInteractiveShell.prompts_pad_left = True
1879 -+
1880 -+# The name of the logfile to use.
1881 -+# c.TerminalInteractiveShell.logfile = ''
1882 -+
1883 -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
1884 -+# interactively (displaying output from expressions).
1885 -+# c.TerminalInteractiveShell.ast_node_interactivity = 'last_expr'
1886 -+
1887 -+#
1888 -+# c.TerminalInteractiveShell.quiet = False
1889 -+
1890 -+# Save multi-line entries as one entry in readline history
1891 -+# c.TerminalInteractiveShell.multiline_history = True
1892 -+
1893 -+# Deprecated, use PromptManager.in_template
1894 -+# c.TerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
1895 -+
1896 -+#
1897 -+# c.TerminalInteractiveShell.readline_use = True
1898 -+
1899 -+# Enable magic commands to be called without the leading %.
1900 -+# c.TerminalInteractiveShell.automagic = True
1901 -+
1902 -+# The part of the banner to be printed before the profile
1903 -+# c.TerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\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'
1904 -+
1905 -+# Make IPython automatically call any callable object even if you didn't type
1906 -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
1907 -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
1908 -+# it is not applied if there are no more arguments on the line, and '2' for
1909 -+# 'full' autocall, where all callable objects are automatically called (even if
1910 -+# no arguments are present).
1911 -+# c.TerminalInteractiveShell.autocall = 0
1912 -+
1913 -+# Autoindent IPython code entered interactively.
1914 -+# c.TerminalInteractiveShell.autoindent = True
1915 -+
1916 -+# Set the color scheme (NoColor, Linux, or LightBG).
1917 -+# c.TerminalInteractiveShell.colors = 'LightBG'
1918 -+
1919 -+# Set the editor used by IPython (default to $EDITOR/vi/notepad).
1920 -+# c.TerminalInteractiveShell.editor = 'mate -w'
1921 -+
1922 -+# Use colors for displaying information about objects. Because this information
1923 -+# is passed through a pager (like 'less'), and some pagers get confused with
1924 -+# color codes, this capability can be turned off.
1925 -+# c.TerminalInteractiveShell.color_info = True
1926 -+
1927 -+#
1928 -+# 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']
1929 -+
1930 -+# Deprecated, use PromptManager.in2_template
1931 -+# c.TerminalInteractiveShell.prompt_in2 = ' .\\D.: '
1932 -+
1933 -+#
1934 -+# c.TerminalInteractiveShell.separate_out2 = ''
1935 -+
1936 -+# The part of the banner to be printed after the profile
1937 -+# c.TerminalInteractiveShell.banner2 = ''
1938 -+
1939 -+# Start logging to the given file in append mode. Use `logfile` to specify a log
1940 -+# file to **overwrite** logs to.
1941 -+# c.TerminalInteractiveShell.logappend = ''
1942 -+
1943 -+# Don't call post-execute functions that have failed in the past.
1944 -+# c.TerminalInteractiveShell.disable_failing_post_execute = False
1945 -+
1946 -+# Deprecated, use PromptManager.out_template
1947 -+# c.TerminalInteractiveShell.prompt_out = 'Out[\\#]: '
1948 -+
1949 -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
1950 -+# module which reloads changes in modules recursively (it replaces the reload()
1951 -+# function, so you don't need to change anything to use it). deep_reload()
1952 -+# forces a full reload of modules whose code may have changed, which the default
1953 -+# reload() function does not. When deep_reload is off, IPython will use the
1954 -+# normal reload(), but deep_reload will still be available as dreload().
1955 -+# c.TerminalInteractiveShell.deep_reload = False
1956 -+
1957 -+#
1958 -+# c.TerminalInteractiveShell.xmode = 'Context'
1959 -+
1960 -+# Show rewritten input, e.g. for autocall.
1961 -+# c.TerminalInteractiveShell.show_rewritten_input = True
1962 -+
1963 -+# Number of lines of your screen, used to control printing of very long strings.
1964 -+# Strings longer than this number of lines will be sent through a pager instead
1965 -+# of directly printed. The default value for this is 0, which means IPython
1966 -+# will auto-detect your screen size every time it needs to print certain
1967 -+# potentially long strings (this doesn't change the behavior of the 'print'
1968 -+# keyword, it's only triggered internally). If for some reason this isn't
1969 -+# working well (it needs curses support), specify it yourself. Otherwise don't
1970 -+# change the default.
1971 -+# c.TerminalInteractiveShell.screen_length = 0
1972 -+
1973 -+# A list of ast.NodeTransformer subclass instances, which will be applied to
1974 -+# user input before code is run.
1975 -+# c.TerminalInteractiveShell.ast_transformers = []
1976 -+
1977 -+# Enable auto setting the terminal title.
1978 -+# c.TerminalInteractiveShell.term_title = False
1979 -+
1980 -+#------------------------------------------------------------------------------
1981 -+# PromptManager configuration
1982 -+#------------------------------------------------------------------------------
1983 -+
1984 -+# This is the primary interface for producing IPython's prompts.
1985 -+
1986 -+#
1987 -+# c.PromptManager.color_scheme = 'Linux'
1988 -+
1989 -+# Continuation prompt.
1990 -+# c.PromptManager.in2_template = ' .\\D.: '
1991 -+
1992 -+# Input prompt. '\#' will be transformed to the prompt number
1993 -+# c.PromptManager.in_template = 'In [\\#]: '
1994 -+
1995 -+# Output prompt. '\#' will be transformed to the prompt number
1996 -+# c.PromptManager.out_template = 'Out[\\#]: '
1997 -+
1998 -+# If True (default), each prompt will be right-aligned with the preceding one.
1999 -+# c.PromptManager.justify = True
2000 -+
2001 -+#------------------------------------------------------------------------------
2002 -+# HistoryManager configuration
2003 -+#------------------------------------------------------------------------------
2004 -+
2005 -+# A class to organize all history-related functionality in one place.
2006 -+
2007 -+# HistoryManager will inherit config from: HistoryAccessor
2008 -+
2009 -+# Options for configuring the SQLite connection
2010 -+#
2011 -+# These options are passed as keyword args to sqlite3.connect when establishing
2012 -+# database conenctions.
2013 -+# c.HistoryManager.connection_options = {}
2014 -+
2015 -+# Should the history database include output? (default: no)
2016 -+# c.HistoryManager.db_log_output = False
2017 -+
2018 -+# enable the SQLite history
2019 -+#
2020 -+# set enabled=False to disable the SQLite history, in which case there will be
2021 -+# no stored history, no SQLite connection, and no background saving thread.
2022 -+# This may be necessary in some threaded environments where IPython is embedded.
2023 -+# c.HistoryManager.enabled = True
2024 -+
2025 -+# Path to file to use for SQLite history database.
2026 -+#
2027 -+# By default, IPython will put the history database in the IPython profile
2028 -+# directory. If you would rather share one history among profiles, you can set
2029 -+# this value in each, so that they are consistent.
2030 -+#
2031 -+# Due to an issue with fcntl, SQLite is known to misbehave on some NFS mounts.
2032 -+# If you see IPython hanging, try setting this to something on a local disk,
2033 -+# e.g::
2034 -+#
2035 -+# ipython --HistoryManager.hist_file=/tmp/ipython_hist.sqlite
2036 -+# c.HistoryManager.hist_file = ''
2037 -+
2038 -+# Write to database every x commands (higher values save disk access & power).
2039 -+# Values of 1 or less effectively disable caching.
2040 -+# c.HistoryManager.db_cache_size = 0
2041 -+
2042 -+#------------------------------------------------------------------------------
2043 -+# ProfileDir configuration
2044 -+#------------------------------------------------------------------------------
2045 -+
2046 -+# An object to manage the profile directory and its resources.
2047 -+#
2048 -+# The profile directory is used by all IPython applications, to manage
2049 -+# configuration, logging and security.
2050 -+#
2051 -+# This object knows how to find, create and manage these directories. This
2052 -+# should be used by any code that wants to handle profiles.
2053 -+
2054 -+# Set the profile location directly. This overrides the logic used by the
2055 -+# `profile` option.
2056 -+# c.ProfileDir.location = ''
2057 -+
2058 -+#------------------------------------------------------------------------------
2059 -+# PlainTextFormatter configuration
2060 -+#------------------------------------------------------------------------------
2061 -+
2062 -+# The default pretty-printer.
2063 -+#
2064 -+# This uses :mod:`IPython.lib.pretty` to compute the format data of the object.
2065 -+# If the object cannot be pretty printed, :func:`repr` is used. See the
2066 -+# documentation of :mod:`IPython.lib.pretty` for details on how to write pretty
2067 -+# printers. Here is a simple example::
2068 -+#
2069 -+# def dtype_pprinter(obj, p, cycle):
2070 -+# if cycle:
2071 -+# return p.text('dtype(...)')
2072 -+# if hasattr(obj, 'fields'):
2073 -+# if obj.fields is None:
2074 -+# p.text(repr(obj))
2075 -+# else:
2076 -+# p.begin_group(7, 'dtype([')
2077 -+# for i, field in enumerate(obj.descr):
2078 -+# if i > 0:
2079 -+# p.text(',')
2080 -+# p.breakable()
2081 -+# p.pretty(field)
2082 -+# p.end_group(7, '])')
2083 -+
2084 -+# PlainTextFormatter will inherit config from: BaseFormatter
2085 -+
2086 -+#
2087 -+# c.PlainTextFormatter.newline = '\n'
2088 -+
2089 -+#
2090 -+# c.PlainTextFormatter.max_width = 79
2091 -+
2092 -+#
2093 -+# c.PlainTextFormatter.verbose = False
2094 -+
2095 -+#
2096 -+# c.PlainTextFormatter.pprint = True
2097 -+
2098 -+#
2099 -+# c.PlainTextFormatter.singleton_printers = {}
2100 -+
2101 -+#
2102 -+# c.PlainTextFormatter.type_printers = {}
2103 -+
2104 -+# Truncate large collections (lists, dicts, tuples, sets) to this size.
2105 -+#
2106 -+# Set to 0 to disable truncation.
2107 -+# c.PlainTextFormatter.max_seq_length = 1000
2108 -+
2109 -+#
2110 -+# c.PlainTextFormatter.deferred_printers = {}
2111 -+
2112 -+#
2113 -+# c.PlainTextFormatter.float_precision = ''
2114 -+
2115 -+#------------------------------------------------------------------------------
2116 -+# IPCompleter configuration
2117 -+#------------------------------------------------------------------------------
2118 -+
2119 -+# Extension of the completer class with IPython-specific features
2120 -+
2121 -+# IPCompleter will inherit config from: Completer
2122 -+
2123 -+# Whether to merge completion results into a single list
2124 -+#
2125 -+# If False, only the completion results from the first non-empty completer will
2126 -+# be returned.
2127 -+# c.IPCompleter.merge_completions = True
2128 -+
2129 -+# Activate greedy completion
2130 -+#
2131 -+# This will enable completion on elements of lists, results of function calls,
2132 -+# etc., but can be unsafe because the code is actually evaluated on TAB.
2133 -+# c.IPCompleter.greedy = False
2134 -+
2135 -+# Instruct the completer to use __all__ for the completion
2136 -+#
2137 -+# Specifically, when completing on ``object.<tab>``.
2138 -+#
2139 -+# When True: only those names in obj.__all__ will be included.
2140 -+#
2141 -+# When False [default]: the __all__ attribute is ignored
2142 -+# c.IPCompleter.limit_to__all__ = False
2143 -+
2144 -+# Instruct the completer to omit private method names
2145 -+#
2146 -+# Specifically, when completing on ``object.<tab>``.
2147 -+#
2148 -+# When 2 [default]: all names that start with '_' will be excluded.
2149 -+#
2150 -+# When 1: all 'magic' names (``__foo__``) will be excluded.
2151 -+#
2152 -+# When 0: nothing will be excluded.
2153 -+# c.IPCompleter.omit__names = 2
2154 -+
2155 -+#------------------------------------------------------------------------------
2156 -+# ScriptMagics configuration
2157 -+#------------------------------------------------------------------------------
2158 -+
2159 -+# Magics for talking to scripts
2160 -+#
2161 -+# This defines a base `%%script` cell magic for running a cell with a program in
2162 -+# a subprocess, and registers a few top-level magics that call %%script with
2163 -+# common interpreters.
2164 -+
2165 -+# Extra script cell magics to define
2166 -+#
2167 -+# This generates simple wrappers of `%%script foo` as `%%foo`.
2168 -+#
2169 -+# If you want to add script magics that aren't on your path, specify them in
2170 -+# script_paths
2171 -+# c.ScriptMagics.script_magics = []
2172 -+
2173 -+# Dict mapping short 'ruby' names to full paths, such as '/opt/secret/bin/ruby'
2174 -+#
2175 -+# Only necessary for items in script_magics where the default path will not find
2176 -+# the right interpreter.
2177 -+# c.ScriptMagics.script_paths = {}
2178 -+
2179 -+#------------------------------------------------------------------------------
2180 -+# StoreMagics configuration
2181 -+#------------------------------------------------------------------------------
2182 -+
2183 -+# Lightweight persistence for python variables.
2184 -+#
2185 -+# Provides the %store magic.
2186 -+
2187 -+# If True, any %store-d variables will be automatically restored when IPython
2188 -+# starts.
2189 -+# c.StoreMagics.autorestore = False
2190 -
2191 ---- jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.py
2192 -+++ jupyter_core/tests/dotipython_empty/profile_default/ipython_console_config.py
2193 -@@ -0,0 +1,531 @@
2194 -+# Configuration file for ipython-console.
2195 -+
2196 -+c = get_config()
2197 -+
2198 -+#------------------------------------------------------------------------------
2199 -+# ZMQTerminalIPythonApp configuration
2200 -+#------------------------------------------------------------------------------
2201 -+
2202 -+# ZMQTerminalIPythonApp will inherit config from: TerminalIPythonApp,
2203 -+# BaseIPythonApplication, Application, InteractiveShellApp, IPythonConsoleApp,
2204 -+# ConnectionFileMixin
2205 -+
2206 -+# Should variables loaded at startup (by startup files, exec_lines, etc.) be
2207 -+# hidden from tools like %who?
2208 -+# c.ZMQTerminalIPythonApp.hide_initial_ns = True
2209 -+
2210 -+# set the heartbeat port [default: random]
2211 -+# c.ZMQTerminalIPythonApp.hb_port = 0
2212 -+
2213 -+# A list of dotted module names of IPython extensions to load.
2214 -+# c.ZMQTerminalIPythonApp.extensions = []
2215 -+
2216 -+# Execute the given command string.
2217 -+# c.ZMQTerminalIPythonApp.code_to_run = ''
2218 -+
2219 -+# Path to the ssh key to use for logging in to the ssh server.
2220 -+# c.ZMQTerminalIPythonApp.sshkey = ''
2221 -+
2222 -+# The date format used by logging formatters for %(asctime)s
2223 -+# c.ZMQTerminalIPythonApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
2224 -+
2225 -+# set the control (ROUTER) port [default: random]
2226 -+# c.ZMQTerminalIPythonApp.control_port = 0
2227 -+
2228 -+# Reraise exceptions encountered loading IPython extensions?
2229 -+# c.ZMQTerminalIPythonApp.reraise_ipython_extension_failures = False
2230 -+
2231 -+# Set the log level by value or name.
2232 -+# c.ZMQTerminalIPythonApp.log_level = 30
2233 -+
2234 -+# Run the file referenced by the PYTHONSTARTUP environment variable at IPython
2235 -+# startup.
2236 -+# c.ZMQTerminalIPythonApp.exec_PYTHONSTARTUP = True
2237 -+
2238 -+# Pre-load matplotlib and numpy for interactive use, selecting a particular
2239 -+# matplotlib backend and loop integration.
2240 -+# c.ZMQTerminalIPythonApp.pylab = None
2241 -+
2242 -+# Run the module as a script.
2243 -+# c.ZMQTerminalIPythonApp.module_to_run = ''
2244 -+
2245 -+# Whether to display a banner upon starting IPython.
2246 -+# c.ZMQTerminalIPythonApp.display_banner = True
2247 -+
2248 -+# dotted module name of an IPython extension to load.
2249 -+# c.ZMQTerminalIPythonApp.extra_extension = ''
2250 -+
2251 -+# Create a massive crash report when IPython encounters what may be an internal
2252 -+# error. The default is to append a short message to the usual traceback
2253 -+# c.ZMQTerminalIPythonApp.verbose_crash = False
2254 -+
2255 -+# Whether to overwrite existing config files when copying
2256 -+# c.ZMQTerminalIPythonApp.overwrite = False
2257 -+
2258 -+# The IPython profile to use.
2259 -+# c.ZMQTerminalIPythonApp.profile = 'default'
2260 -+
2261 -+# If a command or file is given via the command-line, e.g. 'ipython foo.py',
2262 -+# start an interactive shell after executing the file or command.
2263 -+# c.ZMQTerminalIPythonApp.force_interact = False
2264 -+
2265 -+# List of files to run at IPython startup.
2266 -+# c.ZMQTerminalIPythonApp.exec_files = []
2267 -+
2268 -+# Start IPython quickly by skipping the loading of config files.
2269 -+# c.ZMQTerminalIPythonApp.quick = False
2270 -+
2271 -+# The Logging format template
2272 -+# c.ZMQTerminalIPythonApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
2273 -+
2274 -+# Whether to install the default config files into the profile dir. If a new
2275 -+# profile is being created, and IPython contains config files for that profile,
2276 -+# then they will be staged into the new directory. Otherwise, default config
2277 -+# files will be automatically generated.
2278 -+# c.ZMQTerminalIPythonApp.copy_config_files = False
2279 -+
2280 -+# set the stdin (ROUTER) port [default: random]
2281 -+# c.ZMQTerminalIPythonApp.stdin_port = 0
2282 -+
2283 -+# Path to an extra config file to load.
2284 -+#
2285 -+# If specified, load this config file in addition to any other IPython config.
2286 -+# c.ZMQTerminalIPythonApp.extra_config_file = ''
2287 -+
2288 -+# lines of code to run at IPython startup.
2289 -+# c.ZMQTerminalIPythonApp.exec_lines = []
2290 -+
2291 -+# Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
2292 -+# 'pyglet', 'qt', 'qt5', 'tk', 'wx').
2293 -+# c.ZMQTerminalIPythonApp.gui = None
2294 -+
2295 -+# A file to be run
2296 -+# c.ZMQTerminalIPythonApp.file_to_run = ''
2297 -+
2298 -+# Configure matplotlib for interactive use with the default matplotlib backend.
2299 -+# c.ZMQTerminalIPythonApp.matplotlib = None
2300 -+
2301 -+# Suppress warning messages about legacy config files
2302 -+# c.ZMQTerminalIPythonApp.ignore_old_config = False
2303 -+
2304 -+# set the iopub (PUB) port [default: random]
2305 -+# c.ZMQTerminalIPythonApp.iopub_port = 0
2306 -+
2307 -+#
2308 -+# c.ZMQTerminalIPythonApp.transport = 'tcp'
2309 -+
2310 -+# JSON file in which to store connection info [default: kernel-<pid>.json]
2311 -+#
2312 -+# This file will contain the IP, ports, and authentication key needed to connect
2313 -+# clients to this kernel. By default, this file will be created in the security
2314 -+# dir of the current profile, but can be specified by absolute path.
2315 -+# c.ZMQTerminalIPythonApp.connection_file = ''
2316 -+
2317 -+# The name of the IPython directory. This directory is used for logging
2318 -+# configuration (through profiles), history storage, etc. The default is usually
2319 -+# $HOME/.ipython. This option can also be specified through the environment
2320 -+# variable IPYTHONDIR.
2321 -+# c.ZMQTerminalIPythonApp.ipython_dir = ''
2322 -+
2323 -+# The SSH server to use to connect to the kernel.
2324 -+# c.ZMQTerminalIPythonApp.sshserver = ''
2325 -+
2326 -+# Set to display confirmation dialog on exit. You can always use 'exit' or
2327 -+# 'quit', to force a direct exit without any confirmation.
2328 -+# c.ZMQTerminalIPythonApp.confirm_exit = True
2329 -+
2330 -+# set the shell (ROUTER) port [default: random]
2331 -+# c.ZMQTerminalIPythonApp.shell_port = 0
2332 -+
2333 -+# The name of the default kernel to start.
2334 -+# c.ZMQTerminalIPythonApp.kernel_name = 'python'
2335 -+
2336 -+# If true, IPython will populate the user namespace with numpy, pylab, etc. and
2337 -+# an ``import *`` is done from numpy and pylab, when using pylab mode.
2338 -+#
2339 -+# When False, pylab mode should not import any names into the user namespace.
2340 -+# c.ZMQTerminalIPythonApp.pylab_import_all = True
2341 -+
2342 -+# Connect to an already running kernel
2343 -+# c.ZMQTerminalIPythonApp.existing = ''
2344 -+
2345 -+# Set the kernel's IP address [default localhost]. If the IP address is
2346 -+# something other than localhost, then Consoles on other machines will be able
2347 -+# to connect to the Kernel, so be careful!
2348 -+# c.ZMQTerminalIPythonApp.ip = ''
2349 -+
2350 -+#------------------------------------------------------------------------------
2351 -+# ZMQTerminalInteractiveShell configuration
2352 -+#------------------------------------------------------------------------------
2353 -+
2354 -+# A subclass of TerminalInteractiveShell that uses the 0MQ kernel
2355 -+
2356 -+# ZMQTerminalInteractiveShell will inherit config from:
2357 -+# TerminalInteractiveShell, InteractiveShell
2358 -+
2359 -+#
2360 -+# c.ZMQTerminalInteractiveShell.history_length = 10000
2361 -+
2362 -+# auto editing of files with syntax errors.
2363 -+# c.ZMQTerminalInteractiveShell.autoedit_syntax = False
2364 -+
2365 -+# If True, anything that would be passed to the pager will be displayed as
2366 -+# regular output instead.
2367 -+# c.ZMQTerminalInteractiveShell.display_page = False
2368 -+
2369 -+#
2370 -+# c.ZMQTerminalInteractiveShell.debug = False
2371 -+
2372 -+# 'all', 'last', 'last_expr' or 'none', specifying which nodes should be run
2373 -+# interactively (displaying output from expressions).
2374 -+# c.ZMQTerminalInteractiveShell.ast_node_interactivity = 'last_expr'
2375 -+
2376 -+# Start logging to the default log file in overwrite mode. Use `logappend` to
2377 -+# specify a log file to **append** logs to.
2378 -+# c.ZMQTerminalInteractiveShell.logstart = False
2379 -+
2380 -+# Set the size of the output cache. The default is 1000, you can change it
2381 -+# permanently in your config file. Setting it to 0 completely disables the
2382 -+# caching system, and the minimum value accepted is 20 (if you provide a value
2383 -+# less than 20, it is reset to 0 and a warning is issued). This limit is
2384 -+# defined because otherwise you'll spend more time re-flushing a too small cache
2385 -+# than working
2386 -+# c.ZMQTerminalInteractiveShell.cache_size = 1000
2387 -+
2388 -+# The shell program to be used for paging.
2389 -+# c.ZMQTerminalInteractiveShell.pager = 'less'
2390 -+
2391 -+# The name of the logfile to use.
2392 -+# c.ZMQTerminalInteractiveShell.logfile = ''
2393 -+
2394 -+# Save multi-line entries as one entry in readline history
2395 -+# c.ZMQTerminalInteractiveShell.multiline_history = True
2396 -+
2397 -+#
2398 -+# c.ZMQTerminalInteractiveShell.readline_remove_delims = '-/~'
2399 -+
2400 -+# Enable magic commands to be called without the leading %.
2401 -+# c.ZMQTerminalInteractiveShell.automagic = True
2402 -+
2403 -+# Prefix to add to outputs coming from clients other than this one.
2404 -+#
2405 -+# Only relevant if include_other_output is True.
2406 -+# c.ZMQTerminalInteractiveShell.other_output_prefix = '[remote] '
2407 -+
2408 -+#
2409 -+# c.ZMQTerminalInteractiveShell.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']
2410 -+
2411 -+# Use colors for displaying information about objects. Because this information
2412 -+# is passed through a pager (like 'less'), and some pagers get confused with
2413 -+# color codes, this capability can be turned off.
2414 -+# c.ZMQTerminalInteractiveShell.color_info = True
2415 -+
2416 -+# Callable object called via 'callable' image handler with one argument, `data`,
2417 -+# which is `msg["content"]["data"]` where `msg` is the message from iopub
2418 -+# channel. For exmaple, you can find base64 encoded PNG data as
2419 -+# `data['image/png']`.
2420 -+# c.ZMQTerminalInteractiveShell.callable_image_handler = None
2421 -+
2422 -+# Command to invoke an image viewer program when you are using 'stream' image
2423 -+# handler. This option is a list of string where the first element is the
2424 -+# command itself and reminders are the options for the command. Raw image data
2425 -+# is given as STDIN to the program.
2426 -+# c.ZMQTerminalInteractiveShell.stream_image_handler = []
2427 -+
2428 -+#
2429 -+# c.ZMQTerminalInteractiveShell.separate_out2 = ''
2430 -+
2431 -+# Autoindent IPython code entered interactively.
2432 -+# c.ZMQTerminalInteractiveShell.autoindent = True
2433 -+
2434 -+# The part of the banner to be printed after the profile
2435 -+# c.ZMQTerminalInteractiveShell.banner2 = ''
2436 -+
2437 -+# Don't call post-execute functions that have failed in the past.
2438 -+# c.ZMQTerminalInteractiveShell.disable_failing_post_execute = False
2439 -+
2440 -+# Deprecated, use PromptManager.out_template
2441 -+# c.ZMQTerminalInteractiveShell.prompt_out = 'Out[\\#]: '
2442 -+
2443 -+#
2444 -+# c.ZMQTerminalInteractiveShell.object_info_string_level = 0
2445 -+
2446 -+#
2447 -+# c.ZMQTerminalInteractiveShell.separate_out = ''
2448 -+
2449 -+# Automatically call the pdb debugger after every exception.
2450 -+# c.ZMQTerminalInteractiveShell.pdb = False
2451 -+
2452 -+# Deprecated, use PromptManager.in_template
2453 -+# c.ZMQTerminalInteractiveShell.prompt_in1 = 'In [\\#]: '
2454 -+
2455 -+#
2456 -+# c.ZMQTerminalInteractiveShell.separate_in = '\n'
2457 -+
2458 -+#
2459 -+# c.ZMQTerminalInteractiveShell.wildcards_case_sensitive = True
2460 -+
2461 -+# Enable auto setting the terminal title.
2462 -+# c.ZMQTerminalInteractiveShell.term_title = False
2463 -+
2464 -+# Enable deep (recursive) reloading by default. IPython can use the deep_reload
2465 -+# module which reloads changes in modules recursively (it replaces the reload()
2466 -+# function, so you don't need to change anything to use it). deep_reload()
2467 -+# forces a full reload of modules whose code may have changed, which the default
2468 -+# reload() function does not. When deep_reload is off, IPython will use the
2469 -+# normal reload(), but deep_reload will still be available as dreload().
2470 -+# c.ZMQTerminalInteractiveShell.deep_reload = False
2471 -+
2472 -+# Deprecated, use PromptManager.in2_template
2473 -+# c.ZMQTerminalInteractiveShell.prompt_in2 = ' .\\D.: '
2474 -+
2475 -+# Whether to include output from clients other than this one sharing the same
2476 -+# kernel.
2477 -+#
2478 -+# Outputs are not displayed until enter is pressed.
2479 -+# c.ZMQTerminalInteractiveShell.include_other_output = False
2480 -+
2481 -+# Preferred object representation MIME type in order. First matched MIME type
2482 -+# will be used.
2483 -+# c.ZMQTerminalInteractiveShell.mime_preference = ['image/png', 'image/jpeg', 'image/svg+xml']
2484 -+
2485 -+#
2486 -+# c.ZMQTerminalInteractiveShell.readline_use = True
2487 -+
2488 -+# Make IPython automatically call any callable object even if you didn't type
2489 -+# explicit parentheses. For example, 'str 43' becomes 'str(43)' automatically.
2490 -+# The value can be '0' to disable the feature, '1' for 'smart' autocall, where
2491 -+# it is not applied if there are no more arguments on the line, and '2' for
2492 -+# 'full' autocall, where all callable objects are automatically called (even if
2493 -+# no arguments are present).
2494 -+# c.ZMQTerminalInteractiveShell.autocall = 0
2495 -+
2496 -+# The part of the banner to be printed before the profile
2497 -+# c.ZMQTerminalInteractiveShell.banner1 = 'Python 3.4.3 |Continuum Analytics, Inc.| (default, Mar 6 2015, 12:07:41) \nType "copyright", "credits" or "license" for more information.\n\nIPython 3.1.0 -- An enhanced Interactive Python.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\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'
2498 -+
2499 -+# Handler for image type output. This is useful, for example, when connecting
2500 -+# to the kernel in which pylab inline backend is activated. There are four
2501 -+# handlers defined. 'PIL': Use Python Imaging Library to popup image; 'stream':
2502 -+# Use an external program to show the image. Image will be fed into the STDIN
2503 -+# of the program. You will need to configure `stream_image_handler`;
2504 -+# 'tempfile': Use an external program to show the image. Image will be saved in
2505 -+# a temporally file and the program is called with the temporally file. You
2506 -+# will need to configure `tempfile_image_handler`; 'callable': You can set any
2507 -+# Python callable which is called with the image data. You will need to
2508 -+# configure `callable_image_handler`.
2509 -+#