当前位置:   article > 正文

jupyter_notebook_config.py的配置详解_jupyter notebook config.py

jupyter notebook config.py
  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 = ''
  20. ## Specify a config file to load.
  21. #c.JupyterApp.config_file_name = ''
  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. ## Allow password to be changed at login for the notebook server.
  46. #
  47. # While loggin in with a token, the notebook server UI will give the opportunity
  48. # to the user to enter a new password at the same time that will replace the
  49. # token login mechanism.
  50. #
  51. # This can be set to false to prevent changing password from the UI/API.
  52. #c.NotebookApp.allow_password_change = True
  53. ## Allow requests where the Host header doesn't point to a local server
  54. #
  55. # By default, requests get a 403 forbidden response if the 'Host' header shows
  56. # that the browser thinks it's on a non-local domain. Setting this option to
  57. # True disables this check.
  58. #
  59. # This protects against 'DNS rebinding' attacks, where a remote web server
  60. # serves you a page and then changes its DNS to send later requests to a local
  61. # IP, bypassing same-origin checks.
  62. #
  63. # Local IP addresses (such as 127.0.0.1 and ::1) are allowed as local, along
  64. # with hostnames configured in local_hostnames.
  65. #c.NotebookApp.allow_remote_access = False
  66. ## Whether to allow the user to run the notebook as root.
  67. #c.NotebookApp.allow_root = False
  68. ## DEPRECATED use base_url
  69. #c.NotebookApp.base_project_url = '/'
  70. ## The base URL for the notebook server.
  71. #
  72. # Leading and trailing slashes can be omitted, and will automatically be added.
  73. #c.NotebookApp.base_url = '/'
  74. ## Specify what command to use to invoke a web browser when opening the notebook.
  75. # If not specified, the default browser will be determined by the `webbrowser`
  76. # standard library module, which allows setting of the BROWSER environment
  77. # variable to override it.
  78. #c.NotebookApp.browser = ''
  79. ## The full path to an SSL/TLS certificate file.
  80. #c.NotebookApp.certfile = ''
  81. ## The full path to a certificate authority certificate for SSL/TLS client
  82. # authentication.
  83. #c.NotebookApp.client_ca = ''
  84. ## The config manager class to use
  85. #c.NotebookApp.config_manager_class = 'notebook.services.config.manager.ConfigManager'
  86. ## The notebook manager class to use.
  87. #c.NotebookApp.contents_manager_class = 'notebook.services.contents.largefilemanager.LargeFileManager'
  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. ## The random bytes used to secure cookies. By default this is a new random
  92. # number every time you start the Notebook. Set it to a value in a config file
  93. # to enable logins to persist across server sessions.
  94. #
  95. # Note: Cookie secrets should be kept private, do not share config files with
  96. # cookie_secret stored in plaintext (you can read the value from a file).
  97. #c.NotebookApp.cookie_secret = b''
  98. ## The file where the cookie secret is stored.
  99. #c.NotebookApp.cookie_secret_file = ''
  100. ## Override URL shown to users.
  101. #
  102. # Replace actual URL, including protocol, address, port and base URL, with the
  103. # given value when displaying URL to the users. Do not change the actual
  104. # connection URL. If authentication token is enabled, the token is added to the
  105. # custom URL automatically.
  106. #
  107. # This option is intended to be used when the URL to display to the user cannot
  108. # be determined reliably by the Jupyter notebook server (proxified or
  109. # containerized setups for example).
  110. #c.NotebookApp.custom_display_url = ''
  111. ## The default URL to redirect to from `/`
  112. #c.NotebookApp.default_url = '/tree'
  113. ## Disable cross-site-request-forgery protection
  114. #
  115. # Jupyter notebook 4.3.1 introduces protection from cross-site request
  116. # forgeries, requiring API requests to either:
  117. #
  118. # - originate from pages served by this server (validated with XSRF cookie and
  119. # token), or - authenticate with a token
  120. #
  121. # Some anonymous compute resources still desire the ability to run code,
  122. # completely without authentication. These services can disable all
  123. # authentication and security checks, with the full knowledge of what that
  124. # implies.
  125. #c.NotebookApp.disable_check_xsrf = Fals
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/863017
推荐阅读
相关标签
  

闽ICP备14008679号