Advertisement
Guest User

Untitled

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