jupyter_notebook_config.py 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. # Configuration file for jupyter-notebook.
  2. #------------------------------------------------------------------------------
  3. # Application(SingletonConfigurable) configuration
  4. #------------------------------------------------------------------------------
  5. ## This is an application.
  6. ## The date format used by logging formatters for %(asctime)s
  7. #c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'
  8. ## The Logging format template
  9. #c.Application.log_format = '[%(name)s]%(highlevel)s %(message)s'
  10. ## Set the log level by value or name.
  11. #c.Application.log_level = 30
  12. #------------------------------------------------------------------------------
  13. # JupyterApp(Application) configuration
  14. #------------------------------------------------------------------------------
  15. ## Base class for Jupyter applications
  16. ## Answer yes to any prompts.
  17. #c.JupyterApp.answer_yes = False
  18. ## Full path of a config file.
  19. #c.JupyterApp.config_file = u''
  20. ## Specify a config file to load.
  21. #c.JupyterApp.config_file_name = u''
  22. ## Generate default config file.
  23. #c.JupyterApp.generate_config = False
  24. #------------------------------------------------------------------------------
  25. # NotebookApp(JupyterApp) configuration
  26. #------------------------------------------------------------------------------
  27. ## Set the Access-Control-Allow-Credentials: true header
  28. #c.NotebookApp.allow_credentials = False
  29. ## Set the Access-Control-Allow-Origin header
  30. #
  31. # Use '*' to allow any origin to access your server.
  32. #
  33. # Takes precedence over allow_origin_pat.
  34. #c.NotebookApp.allow_origin = ''
  35. ## Use a regular expression for the Access-Control-Allow-Origin header
  36. #
  37. # Requests from an origin matching the expression will get replies with:
  38. #
  39. # Access-Control-Allow-Origin: origin
  40. #
  41. # where `origin` is the origin of the request.
  42. #
  43. # Ignored if allow_origin is set.
  44. #c.NotebookApp.allow_origin_pat = ''
  45. ## Whether to allow the user to run the notebook as root.
  46. #c.NotebookApp.allow_root = False
  47. ## DEPRECATED use base_url
  48. #c.NotebookApp.base_project_url = '/'
  49. ## The base URL for the notebook server.
  50. #
  51. # Leading and trailing slashes can be omitted, and will automatically be added.
  52. #c.NotebookApp.base_url = '/'
  53. ## Specify what command to use to invoke a web browser when opening the notebook.
  54. # If not specified, the default browser will be determined by the `webbrowser`
  55. # standard library module, which allows setting of the BROWSER environment
  56. # variable to override it.
  57. #c.NotebookApp.browser = u''
  58. ## The full path to an SSL/TLS certificate file.
  59. #c.NotebookApp.certfile = u''
  60. ## The full path to a certificate authority certificate for SSL/TLS client
  61. # authentication.
  62. #c.NotebookApp.client_ca = u''
  63. ## The config manager class to use
  64. #c.NotebookApp.config_manager_class = 'notebook.services.config.manager.ConfigManager'
  65. ## The notebook manager class to use.
  66. #c.NotebookApp.contents_manager_class = 'notebook.services.contents.largefilemanager.LargeFileManager'
  67. ## Extra keyword arguments to pass to `set_secure_cookie`. See tornado's
  68. # set_secure_cookie docs for details.
  69. #c.NotebookApp.cookie_options = {}
  70. ## The random bytes used to secure cookies. By default this is a new random
  71. # number every time you start the Notebook. Set it to a value in a config file
  72. # to enable logins to persist across server sessions.
  73. #
  74. # Note: Cookie secrets should be kept private, do not share config files with
  75. # cookie_secret stored in plaintext (you can read the value from a file).
  76. #c.NotebookApp.cookie_secret = ''
  77. ## The file where the cookie secret is stored.
  78. #c.NotebookApp.cookie_secret_file = u''
  79. ## The default URL to redirect to from `/`
  80. #c.NotebookApp.default_url = '/tree'
  81. ## Disable cross-site-request-forgery protection
  82. #
  83. # Jupyter notebook 4.3.1 introduces protection from cross-site request
  84. # forgeries, requiring API requests to either:
  85. #
  86. # - originate from pages served by this server (validated with XSRF cookie and
  87. # token), or - authenticate with a token
  88. #
  89. # Some anonymous compute resources still desire the ability to run code,
  90. # completely without authentication. These services can disable all
  91. # authentication and security checks, with the full knowledge of what that
  92. # implies.
  93. #c.NotebookApp.disable_check_xsrf = False
  94. ## Whether to enable MathJax for typesetting math/TeX
  95. #
  96. # MathJax is the javascript library Jupyter uses to render math/LaTeX. It is
  97. # very large, so you may want to disable it if you have a slow internet
  98. # connection, or for offline use of the notebook.
  99. #
  100. # When disabled, equations etc. will appear as their untransformed TeX source.
  101. #c.NotebookApp.enable_mathjax = True
  102. ## extra paths to look for Javascript notebook extensions
  103. #c.NotebookApp.extra_nbextensions_path = []
  104. ## Extra paths to search for serving static files.
  105. #
  106. # This allows adding javascript/css to be available from the notebook server
  107. # machine, or overriding individual files in the IPython
  108. #c.NotebookApp.extra_static_paths = []
  109. ## Extra paths to search for serving jinja templates.
  110. #
  111. # Can be used to override templates from notebook.templates.
  112. #c.NotebookApp.extra_template_paths = []
  113. ##
  114. #c.NotebookApp.file_to_run = ''
  115. ## Deprecated: Use minified JS file or not, mainly use during dev to avoid JS
  116. # recompilation
  117. #c.NotebookApp.ignore_minified_js = False
  118. ## (bytes/sec) Maximum rate at which stream output can be sent on iopub before
  119. # they are limited.
  120. #c.NotebookApp.iopub_data_rate_limit = 1000000
  121. ## (msgs/sec) Maximum rate at which messages can be sent on iopub before they are
  122. # limited.
  123. #c.NotebookApp.iopub_msg_rate_limit = 1000
  124. ## The IP address the notebook server will listen on.
  125. #c.NotebookApp.ip = 'localhost'
  126. ## Supply extra arguments that will be passed to Jinja environment.
  127. #c.NotebookApp.jinja_environment_options = {}
  128. ## Extra variables to supply to jinja templates when rendering.
  129. #c.NotebookApp.jinja_template_vars = {}
  130. ## The kernel manager class to use.
  131. #c.NotebookApp.kernel_manager_class = 'notebook.services.kernels.kernelmanager.MappingKernelManager'
  132. ## The kernel spec manager class to use. Should be a subclass of
  133. # `jupyter_client.kernelspec.KernelSpecManager`.
  134. #
  135. # The Api of KernelSpecManager is provisional and might change without warning
  136. # between this version of Jupyter and the next stable one.
  137. #c.NotebookApp.kernel_spec_manager_class = 'jupyter_client.kernelspec.KernelSpecManager'
  138. ## The full path to a private key file for usage with SSL/TLS.
  139. #c.NotebookApp.keyfile = u''
  140. ## The login handler class to use.
  141. #c.NotebookApp.login_handler_class = 'notebook.auth.login.LoginHandler'
  142. ## The logout handler class to use.
  143. #c.NotebookApp.logout_handler_class = 'notebook.auth.logout.LogoutHandler'
  144. ## The MathJax.js configuration file that is to be used.
  145. #c.NotebookApp.mathjax_config = 'TeX-AMS-MML_HTMLorMML-full,Safe'
  146. ## A custom url for MathJax.js. Should be in the form of a case-sensitive url to
  147. # MathJax, for example: /static/components/MathJax/MathJax.js
  148. #c.NotebookApp.mathjax_url = ''
  149. ## Dict of Python modules to load as notebook server extensions.Entry values can
  150. # be used to enable and disable the loading ofthe extensions. The extensions
  151. # will be loaded in alphabetical order.
  152. #c.NotebookApp.nbserver_extensions = {}
  153. ## The directory to use for notebooks and kernels.
  154. #c.NotebookApp.notebook_dir = u''
  155. ## Whether to open in a browser after starting. The specific browser used is
  156. # platform dependent and determined by the python standard library `webbrowser`
  157. # module, unless it is overridden using the --browser (NotebookApp.browser)
  158. # configuration option.
  159. #c.NotebookApp.open_browser = True
  160. ## Hashed password to use for web authentication.
  161. #
  162. # To generate, type in a python/IPython shell:
  163. #
  164. # from notebook.auth import passwd; passwd()
  165. #
  166. # The string should be of the form type:salt:hashed-password.
  167. #c.NotebookApp.password = u''
  168. ## Forces users to use a password for the Notebook server. This is useful in a
  169. # multi user environment, for instance when everybody in the LAN can access each
  170. # other's machine through ssh.
  171. #
  172. # In such a case, server the notebook server on localhost is not secure since
  173. # any user can connect to the notebook server via ssh.
  174. #c.NotebookApp.password_required = False
  175. ## The port the notebook server will listen on.
  176. #c.NotebookApp.port = 8888
  177. ## The number of additional ports to try if the specified port is not available.
  178. #c.NotebookApp.port_retries = 50
  179. ## DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib.
  180. #c.NotebookApp.pylab = 'disabled'
  181. ## (sec) Time window used to check the message and data rate limits.
  182. #c.NotebookApp.rate_limit_window = 3
  183. ## Reraise exceptions encountered loading server extensions?
  184. #c.NotebookApp.reraise_server_extension_failures = False
  185. ## DEPRECATED use the nbserver_extensions dict instead
  186. #c.NotebookApp.server_extensions = []
  187. ## The session manager class to use.
  188. #c.NotebookApp.session_manager_class = 'notebook.services.sessions.sessionmanager.SessionManager'
  189. ## Supply SSL options for the tornado HTTPServer. See the tornado docs for
  190. # details.
  191. #c.NotebookApp.ssl_options = {}
  192. ## Supply overrides for terminado. Currently only supports "shell_command".
  193. #c.NotebookApp.terminado_settings = {}
  194. ## Token used for authenticating first-time connections to the server.
  195. #
  196. # When no password is enabled, the default is to generate a new, random token.
  197. #
  198. # Setting to an empty string disables authentication altogether, which is NOT
  199. # RECOMMENDED.
  200. #c.NotebookApp.token = '<generated>'
  201. ## Supply overrides for the tornado.web.Application that the Jupyter notebook
  202. # uses.
  203. #c.NotebookApp.tornado_settings = {}
  204. ## Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
  205. # For headerssent by the upstream reverse proxy. Necessary if the proxy handles
  206. # SSL
  207. #c.NotebookApp.trust_xheaders = False
  208. ## DEPRECATED, use tornado_settings
  209. #c.NotebookApp.webapp_settings = {}
  210. ## Specify Where to open the notebook on startup. This is the
  211. # `new` argument passed to the standard library method `webbrowser.open`.
  212. # The behaviour is not guaranteed, but depends on browser support. Valid
  213. # values are:
  214. # 2 opens a new tab,
  215. # 1 opens a new window,
  216. # 0 opens in an existing window.
  217. # See the `webbrowser.open` documentation for details.
  218. #c.NotebookApp.webbrowser_open_new = 2
  219. ## Set the tornado compression options for websocket connections.
  220. #
  221. # This value will be returned from
  222. # :meth:`WebSocketHandler.get_compression_options`. None (default) will disable
  223. # compression. A dict (even an empty one) will enable compression.
  224. #
  225. # See the tornado docs for WebSocketHandler.get_compression_options for details.
  226. #c.NotebookApp.websocket_compression_options = None
  227. ## The base URL for websockets, if it differs from the HTTP server (hint: it
  228. # almost certainly doesn't).
  229. #
  230. # Should be in the form of an HTTP origin: ws[s]://hostname[:port]
  231. #c.NotebookApp.websocket_url = ''
  232. #------------------------------------------------------------------------------
  233. # ConnectionFileMixin(LoggingConfigurable) configuration
  234. #------------------------------------------------------------------------------
  235. ## Mixin for configurable classes that work with connection files
  236. ## JSON file in which to store connection info [default: kernel-<pid>.json]
  237. #
  238. # This file will contain the IP, ports, and authentication key needed to connect
  239. # clients to this kernel. By default, this file will be created in the security
  240. # dir of the current profile, but can be specified by absolute path.
  241. #c.ConnectionFileMixin.connection_file = ''
  242. ## set the control (ROUTER) port [default: random]
  243. #c.ConnectionFileMixin.control_port = 0
  244. ## set the heartbeat port [default: random]
  245. #c.ConnectionFileMixin.hb_port = 0
  246. ## set the iopub (PUB) port [default: random]
  247. #c.ConnectionFileMixin.iopub_port = 0
  248. ## Set the kernel's IP address [default localhost]. If the IP address is
  249. # something other than localhost, then Consoles on other machines will be able
  250. # to connect to the Kernel, so be careful!
  251. #c.ConnectionFileMixin.ip = u''
  252. ## set the shell (ROUTER) port [default: random]
  253. #c.ConnectionFileMixin.shell_port = 0
  254. ## set the stdin (ROUTER) port [default: random]
  255. #c.ConnectionFileMixin.stdin_port = 0
  256. ##
  257. #c.ConnectionFileMixin.transport = 'tcp'
  258. #------------------------------------------------------------------------------
  259. # KernelManager(ConnectionFileMixin) configuration
  260. #------------------------------------------------------------------------------
  261. ## Manages a single kernel in a subprocess on this host.
  262. #
  263. # This version starts kernels with Popen.
  264. ## Should we autorestart the kernel if it dies.
  265. #c.KernelManager.autorestart = True
  266. ## DEPRECATED: Use kernel_name instead.
  267. #
  268. # The Popen Command to launch the kernel. Override this if you have a custom
  269. # kernel. If kernel_cmd is specified in a configuration file, Jupyter does not
  270. # pass any arguments to the kernel, because it cannot make any assumptions about
  271. # the arguments that the kernel understands. In particular, this means that the
  272. # kernel does not receive the option --debug if it given on the Jupyter command
  273. # line.
  274. #c.KernelManager.kernel_cmd = []
  275. ## Time to wait for a kernel to terminate before killing it, in seconds.
  276. #c.KernelManager.shutdown_wait_time = 5.0
  277. #------------------------------------------------------------------------------
  278. # Session(Configurable) configuration
  279. #------------------------------------------------------------------------------
  280. ## Object for handling serialization and sending of messages.
  281. #
  282. # The Session object handles building messages and sending them with ZMQ sockets
  283. # or ZMQStream objects. Objects can communicate with each other over the
  284. # network via Session objects, and only need to work with the dict-based IPython
  285. # message spec. The Session will handle serialization/deserialization, security,
  286. # and metadata.
  287. #
  288. # Sessions support configurable serialization via packer/unpacker traits, and
  289. # signing with HMAC digests via the key/keyfile traits.
  290. #
  291. # Parameters ----------
  292. #
  293. # debug : bool
  294. # whether to trigger extra debugging statements
  295. # packer/unpacker : str : 'json', 'pickle' or import_string
  296. # importstrings for methods to serialize message parts. If just
  297. # 'json' or 'pickle', predefined JSON and pickle packers will be used.
  298. # Otherwise, the entire importstring must be used.
  299. #
  300. # The functions must accept at least valid JSON input, and output *bytes*.
  301. #
  302. # For example, to use msgpack:
  303. # packer = 'msgpack.packb', unpacker='msgpack.unpackb'
  304. # pack/unpack : callables
  305. # You can also set the pack/unpack callables for serialization directly.
  306. # session : bytes
  307. # the ID of this Session object. The default is to generate a new UUID.
  308. # username : unicode
  309. # username added to message headers. The default is to ask the OS.
  310. # key : bytes
  311. # The key used to initialize an HMAC signature. If unset, messages
  312. # will not be signed or checked.
  313. # keyfile : filepath
  314. # The file containing a key. If this is set, `key` will be initialized
  315. # to the contents of the file.
  316. ## Threshold (in bytes) beyond which an object's buffer should be extracted to
  317. # avoid pickling.
  318. #c.Session.buffer_threshold = 1024
  319. ## Whether to check PID to protect against calls after fork.
  320. #
  321. # This check can be disabled if fork-safety is handled elsewhere.
  322. #c.Session.check_pid = True
  323. ## Threshold (in bytes) beyond which a buffer should be sent without copying.
  324. #c.Session.copy_threshold = 65536
  325. ## Debug output in the Session
  326. #c.Session.debug = False
  327. ## The maximum number of digests to remember.
  328. #
  329. # The digest history will be culled when it exceeds this value.
  330. #c.Session.digest_history_size = 65536
  331. ## The maximum number of items for a container to be introspected for custom
  332. # serialization. Containers larger than this are pickled outright.
  333. #c.Session.item_threshold = 64
  334. ## execution key, for signing messages.
  335. #c.Session.key = ''
  336. ## path to file containing execution key.
  337. #c.Session.keyfile = ''
  338. ## Metadata dictionary, which serves as the default top-level metadata dict for
  339. # each message.
  340. #c.Session.metadata = {}
  341. ## The name of the packer for serializing messages. Should be one of 'json',
  342. # 'pickle', or an import name for a custom callable serializer.
  343. #c.Session.packer = 'json'
  344. ## The UUID identifying this session.
  345. #c.Session.session = u''
  346. ## The digest scheme used to construct the message signatures. Must have the form
  347. # 'hmac-HASH'.
  348. #c.Session.signature_scheme = 'hmac-sha256'
  349. ## The name of the unpacker for unserializing messages. Only used with custom
  350. # functions for `packer`.
  351. #c.Session.unpacker = 'json'
  352. ## Username for the Session. Default is your system username.
  353. #c.Session.username = u'username'
  354. #------------------------------------------------------------------------------
  355. # MultiKernelManager(LoggingConfigurable) configuration
  356. #------------------------------------------------------------------------------
  357. ## A class for managing multiple kernels.
  358. ## The name of the default kernel to start
  359. #c.MultiKernelManager.default_kernel_name = 'python2'
  360. ## The kernel manager class. This is configurable to allow subclassing of the
  361. # KernelManager for customized behavior.
  362. #c.MultiKernelManager.kernel_manager_class = 'jupyter_client.ioloop.IOLoopKernelManager'
  363. #------------------------------------------------------------------------------
  364. # MappingKernelManager(MultiKernelManager) configuration
  365. #------------------------------------------------------------------------------
  366. ## A KernelManager that handles notebook mapping and HTTP error handling
  367. ## Whether messages from kernels whose frontends have disconnected should be
  368. # buffered in-memory.
  369. #
  370. # When True (default), messages are buffered and replayed on reconnect, avoiding
  371. # lost messages due to interrupted connectivity.
  372. #
  373. # Disable if long-running kernels will produce too much output while no
  374. # frontends are connected.
  375. #c.MappingKernelManager.buffer_offline_messages = True
  376. ## Whether to consider culling kernels which are busy. Only effective if
  377. # cull_idle_timeout is not 0.
  378. #c.MappingKernelManager.cull_busy = False
  379. ## Whether to consider culling kernels which have one or more connections. Only
  380. # effective if cull_idle_timeout is not 0.
  381. #c.MappingKernelManager.cull_connected = False
  382. ## Timeout (in seconds) after which a kernel is considered idle and ready to be
  383. # culled. Values of 0 or lower disable culling. The minimum timeout is 300
  384. # seconds (5 minutes). Positive values less than the minimum value will be set
  385. # to the minimum.
  386. #c.MappingKernelManager.cull_idle_timeout = 0
  387. ## The interval (in seconds) on which to check for idle kernels exceeding the
  388. # cull timeout value.
  389. #c.MappingKernelManager.cull_interval = 300
  390. ##
  391. #c.MappingKernelManager.root_dir = u''
  392. #------------------------------------------------------------------------------
  393. # ContentsManager(LoggingConfigurable) configuration
  394. #------------------------------------------------------------------------------
  395. ## Base class for serving files and directories.
  396. #
  397. # This serves any text or binary file, as well as directories, with special
  398. # handling for JSON notebook documents.
  399. #
  400. # Most APIs take a path argument, which is always an API-style unicode path, and
  401. # always refers to a directory.
  402. #
  403. # - unicode, not url-escaped
  404. # - '/'-separated
  405. # - leading and trailing '/' will be stripped
  406. # - if unspecified, path defaults to '',
  407. # indicating the root path.
  408. ##
  409. #c.ContentsManager.checkpoints = None
  410. ##
  411. #c.ContentsManager.checkpoints_class = 'notebook.services.contents.checkpoints.Checkpoints'
  412. ##
  413. #c.ContentsManager.checkpoints_kwargs = {}
  414. ## handler class to use when serving raw file requests.
  415. #
  416. # Default is a fallback that talks to the ContentsManager API, which may be
  417. # inefficient, especially for large files.
  418. #
  419. # Local files-based ContentsManagers can use a StaticFileHandler subclass, which
  420. # will be much more efficient.
  421. #
  422. # Access to these files should be Authenticated.
  423. #c.ContentsManager.files_handler_class = 'notebook.files.handlers.FilesHandler'
  424. ## Extra parameters to pass to files_handler_class.
  425. #
  426. # For example, StaticFileHandlers generally expect a `path` argument specifying
  427. # the root directory from which to serve files.
  428. #c.ContentsManager.files_handler_params = {}
  429. ## Glob patterns to hide in file and directory listings.
  430. #c.ContentsManager.hide_globs = [u'__pycache__', '*.pyc', '*.pyo', '.DS_Store', '*.so', '*.dylib', '*~']
  431. ## Python callable or importstring thereof
  432. #
  433. # To be called on a contents model prior to save.
  434. #
  435. # This can be used to process the structure, such as removing notebook outputs
  436. # or other side effects that should not be saved.
  437. #
  438. # It will be called as (all arguments passed by keyword)::
  439. #
  440. # hook(path=path, model=model, contents_manager=self)
  441. #
  442. # - model: the model to be saved. Includes file contents.
  443. # Modifying this dict will affect the file that is stored.
  444. # - path: the API path of the save destination
  445. # - contents_manager: this ContentsManager instance
  446. #c.ContentsManager.pre_save_hook = None
  447. ##
  448. #c.ContentsManager.root_dir = '/'
  449. ## The base name used when creating untitled directories.
  450. #c.ContentsManager.untitled_directory = 'Untitled Folder'
  451. ## The base name used when creating untitled files.
  452. #c.ContentsManager.untitled_file = 'untitled'
  453. ## The base name used when creating untitled notebooks.
  454. #c.ContentsManager.untitled_notebook = 'Untitled'
  455. #------------------------------------------------------------------------------
  456. # FileManagerMixin(Configurable) configuration
  457. #------------------------------------------------------------------------------
  458. ## Mixin for ContentsAPI classes that interact with the filesystem.
  459. #
  460. # Provides facilities for reading, writing, and copying both notebooks and
  461. # generic files.
  462. #
  463. # Shared by FileContentsManager and FileCheckpoints.
  464. #
  465. # Note ---- Classes using this mixin must provide the following attributes:
  466. #
  467. # root_dir : unicode
  468. # A directory against against which API-style paths are to be resolved.
  469. #
  470. # log : logging.Logger
  471. ## By default notebooks are saved on disk on a temporary file and then if
  472. # succefully written, it replaces the old ones. This procedure, namely
  473. # 'atomic_writing', causes some bugs on file system whitout operation order
  474. # enforcement (like some networked fs). If set to False, the new notebook is
  475. # written directly on the old one which could fail (eg: full filesystem or quota
  476. # )
  477. #c.FileManagerMixin.use_atomic_writing = True
  478. #------------------------------------------------------------------------------
  479. # FileContentsManager(FileManagerMixin,ContentsManager) configuration
  480. #------------------------------------------------------------------------------
  481. ## Python callable or importstring thereof
  482. #
  483. # to be called on the path of a file just saved.
  484. #
  485. # This can be used to process the file on disk, such as converting the notebook
  486. # to a script or HTML via nbconvert.
  487. #
  488. # It will be called as (all arguments passed by keyword)::
  489. #
  490. # hook(os_path=os_path, model=model, contents_manager=instance)
  491. #
  492. # - path: the filesystem path to the file just written - model: the model
  493. # representing the file - contents_manager: this ContentsManager instance
  494. #c.FileContentsManager.post_save_hook = None
  495. ##
  496. #c.FileContentsManager.root_dir = u''
  497. ## DEPRECATED, use post_save_hook. Will be removed in Notebook 5.0
  498. #c.FileContentsManager.save_script = False
  499. #------------------------------------------------------------------------------
  500. # NotebookNotary(LoggingConfigurable) configuration
  501. #------------------------------------------------------------------------------
  502. ## A class for computing and verifying notebook signatures.
  503. ## The hashing algorithm used to sign notebooks.
  504. #c.NotebookNotary.algorithm = 'sha256'
  505. ## The sqlite file in which to store notebook signatures. By default, this will
  506. # be in your Jupyter data directory. You can set it to ':memory:' to disable
  507. # sqlite writing to the filesystem.
  508. #c.NotebookNotary.db_file = u''
  509. ## The secret key with which notebooks are signed.
  510. #c.NotebookNotary.secret = ''
  511. ## The file where the secret key is stored.
  512. #c.NotebookNotary.secret_file = u''
  513. ## A callable returning the storage backend for notebook signatures. The default
  514. # uses an SQLite database.
  515. #c.NotebookNotary.store_factory = traitlets.Undefined
  516. #------------------------------------------------------------------------------
  517. # KernelSpecManager(LoggingConfigurable) configuration
  518. #------------------------------------------------------------------------------
  519. ## If there is no Python kernelspec registered and the IPython kernel is
  520. # available, ensure it is added to the spec list.
  521. #c.KernelSpecManager.ensure_native_kernel = True
  522. ## The kernel spec class. This is configurable to allow subclassing of the
  523. # KernelSpecManager for customized behavior.
  524. #c.KernelSpecManager.kernel_spec_class = 'jupyter_client.kernelspec.KernelSpec'
  525. ## Whitelist of allowed kernel names.
  526. #
  527. # By default, all installed kernels are allowed.
  528. #c.KernelSpecManager.whitelist = set([])
  529. c.NotebookApp.password = u'sha1:685ca6d7e263:ce5572019c9233603baca6cc608d5f8485ccbf8d'