jupyterlab-configmap.yaml 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: {{ .Release.Name }}-jupyterlab-config
  5. labels:
  6. tier: aihub-dag
  7. component: jupyterlab
  8. release: {{ .Release.Name }}
  9. data:
  10. jupyter_lab_config.py: |
  11. # Configuration file for lab.
  12. c = get_config() # noqa
  13. #------------------------------------------------------------------------------
  14. # Application(SingletonConfigurable) configuration
  15. #------------------------------------------------------------------------------
  16. ## This is an application.
  17. ## The date format used by logging formatters for %(asctime)s
  18. # Default: '%Y-%m-%d %H:%M:%S'
  19. # c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'
  20. ## The Logging format template
  21. # Default: '[%(name)s]%(highlevel)s %(message)s'
  22. # c.Application.log_format = '[%(name)s]%(highlevel)s %(message)s'
  23. ## Set the log level by value or name.
  24. # Choices: any of [0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL']
  25. # Default: 30
  26. # c.Application.log_level = 30
  27. ## Configure additional log handlers.
  28. #
  29. # The default stderr logs handler is configured by the log_level, log_datefmt
  30. # and log_format settings.
  31. #
  32. # This configuration can be used to configure additional handlers (e.g. to
  33. # output the log to a file) or for finer control over the default handlers.
  34. #
  35. # If provided this should be a logging configuration dictionary, for more
  36. # information see:
  37. # https://docs.python.org/3/library/logging.config.html#logging-config-
  38. # dictschema
  39. #
  40. # This dictionary is merged with the base logging configuration which defines
  41. # the following:
  42. #
  43. # * A logging formatter intended for interactive use called
  44. # ``console``.
  45. # * A logging handler that writes to stderr called
  46. # ``console`` which uses the formatter ``console``.
  47. # * A logger with the name of this application set to ``DEBUG``
  48. # level.
  49. #
  50. # This example adds a new handler that writes to a file:
  51. #
  52. # .. code-block:: python
  53. #
  54. # c.Application.logging_config = {
  55. # 'handlers': {
  56. # 'file': {
  57. # 'class': 'logging.FileHandler',
  58. # 'level': 'DEBUG',
  59. # 'filename': '<path/to/file>',
  60. # }
  61. # },
  62. # 'loggers': {
  63. # '<application-name>': {
  64. # 'level': 'DEBUG',
  65. # # NOTE: if you don't list the default "console"
  66. # # handler here then it will be disabled
  67. # 'handlers': ['console', 'file'],
  68. # },
  69. # }
  70. # }
  71. # Default: {}
  72. # c.Application.logging_config = {}
  73. ## Instead of starting the Application, dump configuration to stdout
  74. # Default: False
  75. # c.Application.show_config = False
  76. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  77. # Default: False
  78. # c.Application.show_config_json = False
  79. #------------------------------------------------------------------------------
  80. # JupyterApp(Application) configuration
  81. #------------------------------------------------------------------------------
  82. ## Base class for Jupyter applications
  83. ## Answer yes to any prompts.
  84. # Default: False
  85. # c.JupyterApp.answer_yes = False
  86. ## Full path of a config file.
  87. # Default: ''
  88. # c.JupyterApp.config_file = ''
  89. ## Specify a config file to load.
  90. # Default: ''
  91. # c.JupyterApp.config_file_name = ''
  92. ## Generate default config file.
  93. # Default: False
  94. # c.JupyterApp.generate_config = False
  95. ## The date format used by logging formatters for %(asctime)s
  96. # See also: Application.log_datefmt
  97. # c.JupyterApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  98. ## The Logging format template
  99. # See also: Application.log_format
  100. # c.JupyterApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  101. ## Set the log level by value or name.
  102. # See also: Application.log_level
  103. # c.JupyterApp.log_level = 30
  104. ##
  105. # See also: Application.logging_config
  106. # c.JupyterApp.logging_config = {}
  107. ## Instead of starting the Application, dump configuration to stdout
  108. # See also: Application.show_config
  109. # c.JupyterApp.show_config = False
  110. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  111. # See also: Application.show_config_json
  112. # c.JupyterApp.show_config_json = False
  113. #------------------------------------------------------------------------------
  114. # ExtensionApp(JupyterApp) configuration
  115. #------------------------------------------------------------------------------
  116. ## Base class for configurable Jupyter Server Extension Applications.
  117. #
  118. # ExtensionApp subclasses can be initialized two ways:
  119. # 1. Extension is listed as a jpserver_extension, and ServerApp calls
  120. # its load_jupyter_server_extension classmethod. This is the
  121. # classic way of loading a server extension.
  122. # 2. Extension is launched directly by calling its `launch_instance`
  123. # class method. This method can be set as a entry_point in
  124. # the extensions setup.py
  125. ## Answer yes to any prompts.
  126. # See also: JupyterApp.answer_yes
  127. # c.ExtensionApp.answer_yes = False
  128. ## Full path of a config file.
  129. # See also: JupyterApp.config_file
  130. # c.ExtensionApp.config_file = ''
  131. ## Specify a config file to load.
  132. # See also: JupyterApp.config_file_name
  133. # c.ExtensionApp.config_file_name = ''
  134. # Default: ''
  135. # c.ExtensionApp.default_url = ''
  136. ## Generate default config file.
  137. # See also: JupyterApp.generate_config
  138. # c.ExtensionApp.generate_config = False
  139. ## Handlers appended to the server.
  140. # Default: []
  141. # c.ExtensionApp.handlers = []
  142. ## The date format used by logging formatters for %(asctime)s
  143. # See also: Application.log_datefmt
  144. # c.ExtensionApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  145. ## The Logging format template
  146. # See also: Application.log_format
  147. # c.ExtensionApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  148. ## Set the log level by value or name.
  149. # See also: Application.log_level
  150. # c.ExtensionApp.log_level = 30
  151. ##
  152. # See also: Application.logging_config
  153. # c.ExtensionApp.logging_config = {}
  154. ## Whether to open in a browser after starting.
  155. # The specific browser used is platform dependent and
  156. # determined by the python standard library `webbrowser`
  157. # module, unless it is overridden using the --browser
  158. # (ServerApp.browser) configuration option.
  159. # Default: False
  160. # c.ExtensionApp.open_browser = False
  161. ## Settings that will passed to the server.
  162. # Default: {}
  163. # c.ExtensionApp.settings = {}
  164. ## Instead of starting the Application, dump configuration to stdout
  165. # See also: Application.show_config
  166. # c.ExtensionApp.show_config = False
  167. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  168. # See also: Application.show_config_json
  169. # c.ExtensionApp.show_config_json = False
  170. ## paths to search for serving static files.
  171. #
  172. # This allows adding javascript/css to be available from the notebook server machine,
  173. # or overriding individual files in the IPython
  174. # Default: []
  175. # c.ExtensionApp.static_paths = []
  176. ## Url where the static assets for the extension are served.
  177. # Default: ''
  178. # c.ExtensionApp.static_url_prefix = ''
  179. ## Paths to search for serving jinja templates.
  180. #
  181. # Can be used to override templates from notebook.templates.
  182. # Default: []
  183. # c.ExtensionApp.template_paths = []
  184. #------------------------------------------------------------------------------
  185. # LabServerApp(ExtensionApp) configuration
  186. #------------------------------------------------------------------------------
  187. ## A Lab Server Application that runs out-of-the-box
  188. ## "A list of comma-separated URIs to get the allowed extensions list
  189. #
  190. # .. versionchanged:: 2.0.0
  191. # `LabServerApp.whitetlist_uris` renamed to `allowed_extensions_uris`
  192. # Default: ''
  193. # c.LabServerApp.allowed_extensions_uris = ''
  194. ## Answer yes to any prompts.
  195. # See also: JupyterApp.answer_yes
  196. # c.LabServerApp.answer_yes = False
  197. ## The application settings directory.
  198. # Default: ''
  199. # c.LabServerApp.app_settings_dir = ''
  200. ## The url path for the application.
  201. # Default: '/lab'
  202. # c.LabServerApp.app_url = '/lab'
  203. ## Deprecated, use `LabServerApp.blocked_extensions_uris`
  204. # Default: ''
  205. # c.LabServerApp.blacklist_uris = ''
  206. ## A list of comma-separated URIs to get the blocked extensions list
  207. #
  208. # .. versionchanged:: 2.0.0
  209. # `LabServerApp.blacklist_uris` renamed to `blocked_extensions_uris`
  210. # Default: ''
  211. # c.LabServerApp.blocked_extensions_uris = ''
  212. ## Whether to cache files on the server. This should be `True` except in dev
  213. # mode.
  214. # Default: True
  215. # c.LabServerApp.cache_files = True
  216. ## Full path of a config file.
  217. # See also: JupyterApp.config_file
  218. # c.LabServerApp.config_file = ''
  219. ## Specify a config file to load.
  220. # See also: JupyterApp.config_file_name
  221. # c.LabServerApp.config_file_name = ''
  222. ## Extra paths to look for federated JupyterLab extensions
  223. # Default: []
  224. # c.LabServerApp.extra_labextensions_path = []
  225. ## Generate default config file.
  226. # See also: JupyterApp.generate_config
  227. # c.LabServerApp.generate_config = False
  228. ## Handlers appended to the server.
  229. # See also: ExtensionApp.handlers
  230. # c.LabServerApp.handlers = []
  231. ## Options to pass to the jinja2 environment for this
  232. # Default: {}
  233. # c.LabServerApp.jinja2_options = {}
  234. ## The standard paths to look in for federated JupyterLab extensions
  235. # Default: []
  236. # c.LabServerApp.labextensions_path = []
  237. ## The url for federated JupyterLab extensions
  238. # Default: ''
  239. # c.LabServerApp.labextensions_url = ''
  240. ## The interval delay in seconds to refresh the lists
  241. # Default: 3600
  242. # c.LabServerApp.listings_refresh_seconds = 3600
  243. ## The optional kwargs to use for the listings HTTP requests as
  244. # described on https://2.python-requests.org/en/v2.7.0/api/#requests.request
  245. # Default: {}
  246. # c.LabServerApp.listings_request_options = {}
  247. ## The listings url.
  248. # Default: ''
  249. # c.LabServerApp.listings_url = ''
  250. ## The date format used by logging formatters for %(asctime)s
  251. # See also: Application.log_datefmt
  252. # c.LabServerApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  253. ## The Logging format template
  254. # See also: Application.log_format
  255. # c.LabServerApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  256. ## Set the log level by value or name.
  257. # See also: Application.log_level
  258. # c.LabServerApp.log_level = 30
  259. ##
  260. # See also: Application.logging_config
  261. # c.LabServerApp.logging_config = {}
  262. ## Whether a notebook should start a kernel automatically.
  263. # Default: True
  264. # c.LabServerApp.notebook_starts_kernel = True
  265. ## Whether to open in a browser after starting.
  266. # See also: ExtensionApp.open_browser
  267. # c.LabServerApp.open_browser = False
  268. ## The optional location of the settings schemas directory. If given, a handler
  269. # will be added for settings.
  270. # Default: ''
  271. # c.LabServerApp.schemas_dir = ''
  272. ## Settings that will passed to the server.
  273. # See also: ExtensionApp.settings
  274. # c.LabServerApp.settings = {}
  275. ## The url path of the settings handler.
  276. # Default: ''
  277. # c.LabServerApp.settings_url = ''
  278. ## Instead of starting the Application, dump configuration to stdout
  279. # See also: Application.show_config
  280. # c.LabServerApp.show_config = False
  281. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  282. # See also: Application.show_config_json
  283. # c.LabServerApp.show_config_json = False
  284. ## The optional location of local static files. If given, a static file handler
  285. # will be added.
  286. # Default: ''
  287. # c.LabServerApp.static_dir = ''
  288. ## paths to search for serving static files.
  289. # See also: ExtensionApp.static_paths
  290. # c.LabServerApp.static_paths = []
  291. ## Url where the static assets for the extension are served.
  292. # See also: ExtensionApp.static_url_prefix
  293. # c.LabServerApp.static_url_prefix = ''
  294. ## Paths to search for serving jinja templates.
  295. # See also: ExtensionApp.template_paths
  296. # c.LabServerApp.template_paths = []
  297. ## The application templates directory.
  298. # Default: ''
  299. # c.LabServerApp.templates_dir = ''
  300. ## The optional location of the themes directory. If given, a handler will be
  301. # added for themes.
  302. # Default: ''
  303. # c.LabServerApp.themes_dir = ''
  304. ## The theme url.
  305. # Default: ''
  306. # c.LabServerApp.themes_url = ''
  307. ## The url path of the translations handler.
  308. # Default: ''
  309. # c.LabServerApp.translations_api_url = ''
  310. ## The url path of the tree handler.
  311. # Default: ''
  312. # c.LabServerApp.tree_url = ''
  313. ## The optional location of the user settings directory.
  314. # Default: ''
  315. # c.LabServerApp.user_settings_dir = ''
  316. ## Deprecated, use `LabServerApp.allowed_extensions_uris`
  317. # Default: ''
  318. # c.LabServerApp.whitelist_uris = ''
  319. ## The url path of the workspaces API.
  320. # Default: ''
  321. # c.LabServerApp.workspaces_api_url = ''
  322. ## The optional location of the saved workspaces directory. If given, a handler
  323. # will be added for workspaces.
  324. # Default: ''
  325. # c.LabServerApp.workspaces_dir = ''
  326. #------------------------------------------------------------------------------
  327. # LabApp(LabServerApp) configuration
  328. #------------------------------------------------------------------------------
  329. ##
  330. # See also: LabServerApp.allowed_extensions_uris
  331. # c.LabApp.allowed_extensions_uris = ''
  332. ## Answer yes to any prompts.
  333. # See also: JupyterApp.answer_yes
  334. # c.LabApp.answer_yes = False
  335. ## The app directory to launch JupyterLab from.
  336. # Default: None
  337. # c.LabApp.app_dir = None
  338. ## The application settings directory.
  339. # Default: ''
  340. # c.LabApp.app_settings_dir = ''
  341. ## The url path for the application.
  342. # Default: '/lab'
  343. # c.LabApp.app_url = '/lab'
  344. ## Deprecated, use `LabServerApp.blocked_extensions_uris`
  345. # See also: LabServerApp.blacklist_uris
  346. # c.LabApp.blacklist_uris = ''
  347. ##
  348. # See also: LabServerApp.blocked_extensions_uris
  349. # c.LabApp.blocked_extensions_uris = ''
  350. ## Whether to cache files on the server. This should be `True` except in dev
  351. # mode.
  352. # Default: True
  353. # c.LabApp.cache_files = True
  354. ## Whether to enable collaborative mode (experimental).
  355. # Default: False
  356. # c.LabApp.collaborative = False
  357. ## Full path of a config file.
  358. # See also: JupyterApp.config_file
  359. # c.LabApp.config_file = ''
  360. ## Specify a config file to load.
  361. # See also: JupyterApp.config_file_name
  362. # c.LabApp.config_file_name = ''
  363. ## Whether to start the app in core mode. In this mode, JupyterLab
  364. # will run using the JavaScript assets that are within the installed
  365. # JupyterLab Python package. In core mode, third party extensions are disabled.
  366. # The `--dev-mode` flag is an alias to this to be used when the Python package
  367. # itself is installed in development mode (`pip install -e .`).
  368. # Default: False
  369. # c.LabApp.core_mode = False
  370. ## The default URL to redirect to from `/`
  371. # Default: '/lab'
  372. # c.LabApp.default_url = '/lab'
  373. ## Whether to start the app in dev mode. Uses the unpublished local
  374. # JavaScript packages in the `dev_mode` folder. In this case JupyterLab will
  375. # show a red stripe at the top of the page. It can only be used if JupyterLab
  376. # is installed as `pip install -e .`.
  377. # Default: False
  378. # c.LabApp.dev_mode = False
  379. ## Whether to expose the global app instance to browser via window.jupyterlab
  380. # Default: False
  381. # c.LabApp.expose_app_in_browser = False
  382. ## Whether to load prebuilt extensions in dev mode. This may be
  383. # useful to run and test prebuilt extensions in development installs of
  384. # JupyterLab. APIs in a JupyterLab development install may be
  385. # incompatible with published packages, so prebuilt extensions compiled
  386. # against published packages may not work correctly.
  387. # Default: False
  388. # c.LabApp.extensions_in_dev_mode = False
  389. ## Extra paths to look for federated JupyterLab extensions
  390. # Default: []
  391. # c.LabApp.extra_labextensions_path = []
  392. ## Generate default config file.
  393. # See also: JupyterApp.generate_config
  394. # c.LabApp.generate_config = False
  395. ## Handlers appended to the server.
  396. # See also: ExtensionApp.handlers
  397. # c.LabApp.handlers = []
  398. ## Options to pass to the jinja2 environment for this
  399. # Default: {}
  400. # c.LabApp.jinja2_options = {}
  401. ## The standard paths to look in for federated JupyterLab extensions
  402. # Default: []
  403. # c.LabApp.labextensions_path = []
  404. ## The url for federated JupyterLab extensions
  405. # Default: ''
  406. # c.LabApp.labextensions_url = ''
  407. ## The interval delay in seconds to refresh the lists
  408. # See also: LabServerApp.listings_refresh_seconds
  409. # c.LabApp.listings_refresh_seconds = 3600
  410. ## The optional kwargs to use for the listings HTTP requests as
  411. # described on https://2.python-requests.org/en/v2.7.0/api/#requests.request
  412. # See also: LabServerApp.listings_request_options
  413. # c.LabApp.listings_request_options = {}
  414. ## The listings url.
  415. # Default: ''
  416. # c.LabApp.listings_url = ''
  417. ## The date format used by logging formatters for %(asctime)s
  418. # See also: Application.log_datefmt
  419. # c.LabApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  420. ## The Logging format template
  421. # See also: Application.log_format
  422. # c.LabApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  423. ## Set the log level by value or name.
  424. # See also: Application.log_level
  425. # c.LabApp.log_level = 30
  426. ##
  427. # See also: Application.logging_config
  428. # c.LabApp.logging_config = {}
  429. ## Whether a notebook should start a kernel automatically.
  430. # Default: True
  431. # c.LabApp.notebook_starts_kernel = True
  432. ## Whether to open in a browser after starting.
  433. # See also: ExtensionApp.open_browser
  434. # c.LabApp.open_browser = False
  435. ## The override url for static lab assets, typically a CDN.
  436. # Default: ''
  437. # c.LabApp.override_static_url = ''
  438. ## The override url for static lab theme assets, typically a CDN.
  439. # Default: ''
  440. # c.LabApp.override_theme_url = ''
  441. ## The optional location of the settings schemas directory. If given, a handler
  442. # will be added for settings.
  443. # Default: ''
  444. # c.LabApp.schemas_dir = ''
  445. ## Settings that will passed to the server.
  446. # See also: ExtensionApp.settings
  447. # c.LabApp.settings = {}
  448. ## The url path of the settings handler.
  449. # Default: ''
  450. # c.LabApp.settings_url = ''
  451. ## Instead of starting the Application, dump configuration to stdout
  452. # See also: Application.show_config
  453. # c.LabApp.show_config = False
  454. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  455. # See also: Application.show_config_json
  456. # c.LabApp.show_config_json = False
  457. ## Splice source packages into app directory.
  458. # Default: False
  459. # c.LabApp.splice_source = False
  460. ## The optional location of local static files. If given, a static file handler
  461. # will be added.
  462. # Default: ''
  463. # c.LabApp.static_dir = ''
  464. ## paths to search for serving static files.
  465. # See also: ExtensionApp.static_paths
  466. # c.LabApp.static_paths = []
  467. ## Url where the static assets for the extension are served.
  468. # See also: ExtensionApp.static_url_prefix
  469. # c.LabApp.static_url_prefix = ''
  470. ## Paths to search for serving jinja templates.
  471. # See also: ExtensionApp.template_paths
  472. # c.LabApp.template_paths = []
  473. ## The application templates directory.
  474. # Default: ''
  475. # c.LabApp.templates_dir = ''
  476. ## The optional location of the themes directory. If given, a handler will be
  477. # added for themes.
  478. # Default: ''
  479. # c.LabApp.themes_dir = ''
  480. ## The theme url.
  481. # Default: ''
  482. # c.LabApp.themes_url = ''
  483. ## The url path of the translations handler.
  484. # Default: ''
  485. # c.LabApp.translations_api_url = ''
  486. ## The url path of the tree handler.
  487. # Default: ''
  488. # c.LabApp.tree_url = ''
  489. ## The directory for user settings.
  490. # Default: '/root/.jupyter/lab/user-settings'
  491. # c.LabApp.user_settings_dir = '/root/.jupyter/lab/user-settings'
  492. ## Whether to serve the app in watch mode
  493. # Default: False
  494. # c.LabApp.watch = False
  495. ## Deprecated, use `LabServerApp.allowed_extensions_uris`
  496. # See also: LabServerApp.whitelist_uris
  497. # c.LabApp.whitelist_uris = ''
  498. ## The url path of the workspaces API.
  499. # Default: ''
  500. # c.LabApp.workspaces_api_url = ''
  501. ## The directory for workspaces
  502. # Default: '/root/.jupyter/lab/workspaces'
  503. # c.LabApp.workspaces_dir = '/root/.jupyter/lab/workspaces'
  504. #------------------------------------------------------------------------------
  505. # ServerApp(JupyterApp) configuration
  506. #------------------------------------------------------------------------------
  507. ## Set the Access-Control-Allow-Credentials: true header
  508. # Default: False
  509. # c.ServerApp.allow_credentials = False
  510. ## Set the Access-Control-Allow-Origin header
  511. #
  512. # Use '*' to allow any origin to access your server.
  513. #
  514. # Takes precedence over allow_origin_pat.
  515. # Default: ''
  516. # c.ServerApp.allow_origin = ''
  517. ## Use a regular expression for the Access-Control-Allow-Origin header
  518. #
  519. # Requests from an origin matching the expression will get replies with:
  520. #
  521. # Access-Control-Allow-Origin: origin
  522. #
  523. # where `origin` is the origin of the request.
  524. #
  525. # Ignored if allow_origin is set.
  526. # Default: ''
  527. # c.ServerApp.allow_origin_pat = ''
  528. ## Allow password to be changed at login for the Jupyter server.
  529. #
  530. # While logging in with a token, the Jupyter server UI will give the opportunity to
  531. # the user to enter a new password at the same time that will replace
  532. # the token login mechanism.
  533. #
  534. # This can be set to false to prevent changing password from
  535. # the UI/API.
  536. # Default: True
  537. # c.ServerApp.allow_password_change = True
  538. ## Allow requests where the Host header doesn't point to a local server
  539. #
  540. # By default, requests get a 403 forbidden response if the 'Host' header
  541. # shows that the browser thinks it's on a non-local domain.
  542. # Setting this option to True disables this check.
  543. #
  544. # This protects against 'DNS rebinding' attacks, where a remote web server
  545. # serves you a page and then changes its DNS to send later requests to a
  546. # local IP, bypassing same-origin checks.
  547. #
  548. # Local IP addresses (such as 127.0.0.1 and ::1) are allowed as local,
  549. # along with hostnames configured in local_hostnames.
  550. # Default: False
  551. # c.ServerApp.allow_remote_access = False
  552. ## Whether to allow the user to run the server as root.
  553. # Default: False
  554. # c.ServerApp.allow_root = False
  555. ## Answer yes to any prompts.
  556. # See also: JupyterApp.answer_yes
  557. # c.ServerApp.answer_yes = False
  558. ## "
  559. # Require authentication to access prometheus metrics.
  560. # Default: True
  561. # c.ServerApp.authenticate_prometheus = True
  562. ## The authorizer class to use.
  563. # Default: 'jupyter_server.auth.authorizer.AllowAllAuthorizer'
  564. # c.ServerApp.authorizer_class = 'jupyter_server.auth.authorizer.AllowAllAuthorizer'
  565. ## Reload the webapp when changes are made to any Python src files.
  566. # Default: False
  567. # c.ServerApp.autoreload = False
  568. ## The base URL for the Jupyter server.
  569. #
  570. # Leading and trailing slashes can be omitted,
  571. # and will automatically be added.
  572. # Default: '/'
  573. c.ServerApp.base_url = '{{ .Values.jupyterlab.config.baseUrl }}'
  574. ## Specify what command to use to invoke a web
  575. # browser when starting the server. If not specified, the
  576. # default browser will be determined by the `webbrowser`
  577. # standard library module, which allows setting of the
  578. # BROWSER environment variable to override it.
  579. # Default: ''
  580. # c.ServerApp.browser = ''
  581. ## The full path to an SSL/TLS certificate file.
  582. # Default: ''
  583. # c.ServerApp.certfile = ''
  584. ## The full path to a certificate authority certificate for SSL/TLS client
  585. # authentication.
  586. # Default: ''
  587. # c.ServerApp.client_ca = ''
  588. ## Full path of a config file.
  589. # See also: JupyterApp.config_file
  590. # c.ServerApp.config_file = ''
  591. ## Specify a config file to load.
  592. # See also: JupyterApp.config_file_name
  593. # c.ServerApp.config_file_name = ''
  594. ## The config manager class to use
  595. # Default: 'jupyter_server.services.config.manager.ConfigManager'
  596. # c.ServerApp.config_manager_class = 'jupyter_server.services.config.manager.ConfigManager'
  597. ## The content manager class to use.
  598. # Default: 'jupyter_server.services.contents.largefilemanager.LargeFileManager'
  599. # c.ServerApp.contents_manager_class = 'jupyter_server.services.contents.largefilemanager.LargeFileManager'
  600. ## Extra keyword arguments to pass to `set_secure_cookie`. See tornado's
  601. # set_secure_cookie docs for details.
  602. # Default: {}
  603. # c.ServerApp.cookie_options = {}
  604. ## The random bytes used to secure cookies.
  605. # By default this is a new random number every time you start the server.
  606. # Set it to a value in a config file to enable logins to persist across server sessions.
  607. #
  608. # Note: Cookie secrets should be kept private, do not share config files with
  609. # cookie_secret stored in plaintext (you can read the value from a file).
  610. # Default: b''
  611. # c.ServerApp.cookie_secret = b''
  612. ## The file where the cookie secret is stored.
  613. # Default: ''
  614. # c.ServerApp.cookie_secret_file = ''
  615. ## Override URL shown to users.
  616. #
  617. # Replace actual URL, including protocol, address, port and base URL,
  618. # with the given value when displaying URL to the users. Do not change
  619. # the actual connection URL. If authentication token is enabled, the
  620. # token is added to the custom URL automatically.
  621. #
  622. # This option is intended to be used when the URL to display to the user
  623. # cannot be determined reliably by the Jupyter server (proxified
  624. # or containerized setups for example).
  625. # Default: ''
  626. # c.ServerApp.custom_display_url = ''
  627. ## The default URL to redirect to from `/`
  628. # Default: '/'
  629. # c.ServerApp.default_url = '/'
  630. ## Disable cross-site-request-forgery protection
  631. #
  632. # Jupyter notebook 4.3.1 introduces protection from cross-site request forgeries,
  633. # requiring API requests to either:
  634. #
  635. # - originate from pages served by this server (validated with XSRF cookie and token), or
  636. # - authenticate with a token
  637. #
  638. # Some anonymous compute resources still desire the ability to run code,
  639. # completely without authentication.
  640. # These services can disable all authentication and security checks,
  641. # with the full knowledge of what that implies.
  642. # Default: False
  643. # c.ServerApp.disable_check_xsrf = False
  644. ## handlers that should be loaded at higher priority than the default services
  645. # Default: []
  646. # c.ServerApp.extra_services = []
  647. ## Extra paths to search for serving static files.
  648. #
  649. # This allows adding javascript/css to be available from the Jupyter server machine,
  650. # or overriding individual files in the IPython
  651. # Default: []
  652. # c.ServerApp.extra_static_paths = []
  653. ## Extra paths to search for serving jinja templates.
  654. #
  655. # Can be used to override templates from jupyter_server.templates.
  656. # Default: []
  657. # c.ServerApp.extra_template_paths = []
  658. ## Open the named file when the application is launched.
  659. # Default: ''
  660. # c.ServerApp.file_to_run = ''
  661. ## The URL prefix where files are opened directly.
  662. # Default: 'notebooks'
  663. # c.ServerApp.file_url_prefix = 'notebooks'
  664. ## Generate default config file.
  665. # See also: JupyterApp.generate_config
  666. # c.ServerApp.generate_config = False
  667. ## Extra keyword arguments to pass to `get_secure_cookie`. See tornado's
  668. # get_secure_cookie docs for details.
  669. # Default: {}
  670. # c.ServerApp.get_secure_cookie_kwargs = {}
  671. ## (bytes/sec)
  672. # Maximum rate at which stream output can be sent on iopub before they are
  673. # limited.
  674. # Default: 1000000
  675. # c.ServerApp.iopub_data_rate_limit = 1000000
  676. ## (msgs/sec)
  677. # Maximum rate at which messages can be sent on iopub before they are
  678. # limited.
  679. # Default: 1000
  680. # c.ServerApp.iopub_msg_rate_limit = 1000
  681. ## The IP address the Jupyter server will listen on.
  682. # Default: 'localhost'
  683. # c.ServerApp.ip = 'localhost'
  684. ## Supply extra arguments that will be passed to Jinja environment.
  685. # Default: {}
  686. # c.ServerApp.jinja_environment_options = {}
  687. ## Extra variables to supply to jinja templates when rendering.
  688. # Default: {}
  689. # c.ServerApp.jinja_template_vars = {}
  690. ## Dict of Python modules to load as Jupyter server extensions.Entry values can
  691. # be used to enable and disable the loading ofthe extensions. The extensions
  692. # will be loaded in alphabetical order.
  693. # Default: {}
  694. # c.ServerApp.jpserver_extensions = {}
  695. ## The kernel manager class to use.
  696. # Default: 'jupyter_server.services.kernels.kernelmanager.MappingKernelManager'
  697. # c.ServerApp.kernel_manager_class = 'jupyter_server.services.kernels.kernelmanager.MappingKernelManager'
  698. ## The kernel spec manager class to use. Should be a subclass of
  699. # `jupyter_client.kernelspec.KernelSpecManager`.
  700. #
  701. # The Api of KernelSpecManager is provisional and might change without warning
  702. # between this version of Jupyter and the next stable one.
  703. # Default: 'builtins.object'
  704. # c.ServerApp.kernel_spec_manager_class = 'builtins.object'
  705. ## Preferred kernel message protocol over websocket to use (default: None). If an
  706. # empty string is passed, select the legacy protocol. If None, the selected
  707. # protocol will depend on what the front-end supports (usually the most recent
  708. # protocol supported by the back-end and the front-end).
  709. # Default: None
  710. # c.ServerApp.kernel_ws_protocol = None
  711. ## The full path to a private key file for usage with SSL/TLS.
  712. # Default: ''
  713. # c.ServerApp.keyfile = ''
  714. ## Whether to limit the rate of IOPub messages (default: True). If True, use
  715. # iopub_msg_rate_limit, iopub_data_rate_limit and/or rate_limit_window to tune
  716. # the rate.
  717. # Default: True
  718. # c.ServerApp.limit_rate = True
  719. ## Hostnames to allow as local when allow_remote_access is False.
  720. #
  721. # Local IP addresses (such as 127.0.0.1 and ::1) are automatically accepted
  722. # as local as well.
  723. # Default: ['localhost']
  724. # c.ServerApp.local_hostnames = ['localhost']
  725. ## The date format used by logging formatters for %(asctime)s
  726. # See also: Application.log_datefmt
  727. # c.ServerApp.log_datefmt = '%Y-%m-%d %H:%M:%S'
  728. ## The Logging format template
  729. # See also: Application.log_format
  730. # c.ServerApp.log_format = '[%(name)s]%(highlevel)s %(message)s'
  731. ## Set the log level by value or name.
  732. # See also: Application.log_level
  733. # c.ServerApp.log_level = 30
  734. ##
  735. # See also: Application.logging_config
  736. # c.ServerApp.logging_config = {}
  737. ## The login handler class to use.
  738. # Default: 'jupyter_server.auth.login.LoginHandler'
  739. # c.ServerApp.login_handler_class = 'jupyter_server.auth.login.LoginHandler'
  740. ## The logout handler class to use.
  741. # Default: 'jupyter_server.auth.logout.LogoutHandler'
  742. # c.ServerApp.logout_handler_class = 'jupyter_server.auth.logout.LogoutHandler'
  743. ## Sets the maximum allowed size of the client request body, specified in the
  744. # Content-Length request header field. If the size in a request exceeds the
  745. # configured value, a malformed HTTP message is returned to the client.
  746. #
  747. # Note: max_body_size is applied even in streaming mode.
  748. # Default: 536870912
  749. # c.ServerApp.max_body_size = 536870912
  750. ## Gets or sets the maximum amount of memory, in bytes, that is allocated for use
  751. # by the buffer manager.
  752. # Default: 536870912
  753. # c.ServerApp.max_buffer_size = 536870912
  754. ## Gets or sets a lower bound on the open file handles process resource limit.
  755. # This may need to be increased if you run into an OSError: [Errno 24] Too many
  756. # open files. This is not applicable when running on Windows.
  757. # Default: 0
  758. # c.ServerApp.min_open_files_limit = 0
  759. ## DEPRECATED, use root_dir.
  760. # Default: ''
  761. # c.ServerApp.notebook_dir = ''
  762. ## Whether to open in a browser after starting.
  763. # The specific browser used is platform dependent and
  764. # determined by the python standard library `webbrowser`
  765. # module, unless it is overridden using the --browser
  766. # (ServerApp.browser) configuration option.
  767. # Default: False
  768. # c.ServerApp.open_browser = False
  769. ## Hashed password to use for web authentication.
  770. #
  771. # To generate, type in a python/IPython shell:
  772. #
  773. # from jupyter_server.auth import passwd; passwd()
  774. #
  775. # The string should be of the form type:salt:hashed-
  776. # password.
  777. # Default: ''
  778. # c.ServerApp.password = ''
  779. ## Forces users to use a password for the Jupyter server.
  780. # This is useful in a multi user environment, for instance when
  781. # everybody in the LAN can access each other's machine through ssh.
  782. #
  783. # In such a case, serving on localhost is not secure since
  784. # any user can connect to the Jupyter server via ssh.
  785. # Default: False
  786. # c.ServerApp.password_required = False
  787. ## The port the server will listen on (env: JUPYTER_PORT).
  788. # Default: 0
  789. # c.ServerApp.port = 0
  790. ## The number of additional ports to try if the specified port is not available
  791. # (env: JUPYTER_PORT_RETRIES).
  792. # Default: 50
  793. # c.ServerApp.port_retries = 50
  794. ## Preferred starting directory to use for notebooks and kernels.
  795. # Default: ''
  796. # c.ServerApp.preferred_dir = ''
  797. ## DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib.
  798. # Default: 'disabled'
  799. # c.ServerApp.pylab = 'disabled'
  800. ## If True, display controls to shut down the Jupyter server, such as menu items
  801. # or buttons.
  802. # Default: True
  803. # c.ServerApp.quit_button = True
  804. ## (sec) Time window used to
  805. # check the message and data rate limits.
  806. # Default: 3
  807. # c.ServerApp.rate_limit_window = 3
  808. ## Reraise exceptions encountered loading server extensions?
  809. # Default: False
  810. # c.ServerApp.reraise_server_extension_failures = False
  811. ## The directory to use for notebooks and kernels.
  812. # Default: ''
  813. # c.ServerApp.root_dir = ''
  814. ## The session manager class to use.
  815. # Default: 'builtins.object'
  816. # c.ServerApp.session_manager_class = 'builtins.object'
  817. ## Instead of starting the Application, dump configuration to stdout
  818. # See also: Application.show_config
  819. # c.ServerApp.show_config = False
  820. ## Instead of starting the Application, dump configuration to stdout (as JSON)
  821. # See also: Application.show_config_json
  822. # c.ServerApp.show_config_json = False
  823. ## Shut down the server after N seconds with no kernels or terminals running and
  824. # no activity. This can be used together with culling idle kernels
  825. # (MappingKernelManager.cull_idle_timeout) to shutdown the Jupyter server when
  826. # it's not in use. This is not precisely timed: it may shut down up to a minute
  827. # later. 0 (the default) disables this automatic shutdown.
  828. # Default: 0
  829. # c.ServerApp.shutdown_no_activity_timeout = 0
  830. ## The UNIX socket the Jupyter server will listen on.
  831. # Default: ''
  832. # c.ServerApp.sock = ''
  833. ## The permissions mode for UNIX socket creation (default: 0600).
  834. # Default: '0600'
  835. # c.ServerApp.sock_mode = '0600'
  836. ## Supply SSL options for the tornado HTTPServer.
  837. # See the tornado docs for details.
  838. # Default: {}
  839. # c.ServerApp.ssl_options = {}
  840. ## Supply overrides for terminado. Currently only supports "shell_command".
  841. # Default: {}
  842. # c.ServerApp.terminado_settings = {}
  843. ## Set to False to disable terminals.
  844. #
  845. # This does *not* make the server more secure by itself.
  846. # Anything the user can in a terminal, they can also do in a notebook.
  847. #
  848. # Terminals may also be automatically disabled if the terminado package
  849. # is not available.
  850. # Default: True
  851. # c.ServerApp.terminals_enabled = True
  852. ## Token used for authenticating first-time connections to the server.
  853. #
  854. # The token can be read from the file referenced by JUPYTER_TOKEN_FILE or set directly
  855. # with the JUPYTER_TOKEN environment variable.
  856. #
  857. # When no password is enabled,
  858. # the default is to generate a new, random token.
  859. #
  860. # Setting to an empty string disables authentication altogether, which
  861. # is NOT RECOMMENDED.
  862. # Default: '<generated>'
  863. # c.ServerApp.token = '<generated>'
  864. ## Supply overrides for the tornado.web.Application that the Jupyter server uses.
  865. # Default: {}
  866. # c.ServerApp.tornado_settings = {}
  867. ## Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-
  868. # For headerssent by the upstream reverse proxy. Necessary if the proxy handles
  869. # SSL
  870. # Default: False
  871. # c.ServerApp.trust_xheaders = False
  872. ## Disable launching browser by redirect file
  873. # For versions of notebook > 5.7.2, a security feature measure was added that
  874. # prevented the authentication token used to launch the browser from being visible.
  875. # This feature makes it difficult for other users on a multi-user system from
  876. # running code in your Jupyter session as you.
  877. # However, some environments (like Windows Subsystem for Linux (WSL) and Chromebooks),
  878. # launching a browser using a redirect file can lead the browser failing to load.
  879. # This is because of the difference in file structures/paths between the runtime and
  880. # the browser.
  881. #
  882. # Disabling this setting to False will disable this behavior, allowing the browser
  883. # to launch by using a URL and visible token (as before).
  884. # Default: True
  885. # c.ServerApp.use_redirect_file = True
  886. ## Specify where to open the server on startup. This is the
  887. # `new` argument passed to the standard library method `webbrowser.open`.
  888. # The behaviour is not guaranteed, but depends on browser support. Valid
  889. # values are:
  890. #
  891. # - 2 opens a new tab,
  892. # - 1 opens a new window,
  893. # - 0 opens in an existing window.
  894. #
  895. # See the `webbrowser.open` documentation for details.
  896. # Default: 2
  897. # c.ServerApp.webbrowser_open_new = 2
  898. ## Set the tornado compression options for websocket connections.
  899. #
  900. # This value will be returned from
  901. # :meth:`WebSocketHandler.get_compression_options`. None (default) will disable
  902. # compression. A dict (even an empty one) will enable compression.
  903. #
  904. # See the tornado docs for WebSocketHandler.get_compression_options for details.
  905. # Default: None
  906. # c.ServerApp.websocket_compression_options = None
  907. ## The base URL for websockets,
  908. # if it differs from the HTTP server (hint: it almost certainly doesn't).
  909. #
  910. # Should be in the form of an HTTP origin: ws[s]://hostname[:port]
  911. # Default: ''
  912. # c.ServerApp.websocket_url = ''
  913. # c.NotebookApp.password='argon2:$argon2id$v=19$m=10240,t=10,p=8$vSn0+TR0clV8kla6yqcZqQ$XgjDauBkBL5aY8C8668HKJjoTX7BUT/WccJ+BeANHq4'
  914. c.NotebookApp.password="{{ .Values.jupyterlab.config.password }}"