@@ -141,28 +141,26 @@ cat << EOF > $JUPYTER_CONFIG_ROOT/notebook-extension/tracker.jupyterlab-settings
141141 // @jupyterlab/notebook-extension:tracker
142142 // Notebook settings.
143143 // **************************************
144+
145+ // Code Cell Configuration
146+ // The configuration for all code cells; it will override the CodeMirror default configuration.
144147 "codeCellConfig": {
145- "rulers": [80, 100],
146- "codeFolding": true,
147148 "lineNumbers": true,
148- "lineWrap": "off",
149- "showTrailingSpace": true,
150- "wordWrapColumn": 100
149+ "lineWrap": true
151150 },
151+
152+ // Markdown Cell Configuration
153+ // The configuration for all markdown cells; it will override the CodeMirror default configuration.
152154 "markdownCellConfig": {
153- "rulers": [80, 100],
154- "codeFolding": true,
155155 "lineNumbers": true,
156- "lineWrap": "off",
157- "showTrailingSpace": true,
158- "wordWrapColumn": 100
156+ "lineWrap": true
159157 },
158+
159+ // Raw Cell Configuration
160+ // The configuration for all raw cells; it will override the CodeMirror default configuration.
160161 "rawCellConfig": {
161- "rulers": [80, 100],
162162 "lineNumbers": true,
163- "lineWrap": "off",
164- "showTrailingSpace": true,
165- "wordWrapColumn": 100
163+ "lineWrap": true
166164 },
167165
168166 // Since: jlab-2.0.0
@@ -171,20 +169,22 @@ cat << EOF > $JUPYTER_CONFIG_ROOT/notebook-extension/tracker.jupyterlab-settings
171169}
172170EOF
173171
174- mkdir -p $JUPYTER_CONFIG_ROOT /fileeditor -extension/
175- cat << EOF > $JUPYTER_CONFIG_ROOT /fileeditor -extension/plugin.jupyterlab-settings
172+ mkdir -p $JUPYTER_CONFIG_ROOT /codemirror -extension/
173+ cat << EOF > $JUPYTER_CONFIG_ROOT /codemirror -extension/plugin.jupyterlab-settings
176174{
177- // Text Editor
178- // @jupyterlab/fileeditor -extension:plugin
179- // Text editor settings.
180- // ***************************************
181- "editorConfig": {
182- "rulers ": [80, 100],
175+ // CodeMirror
176+ // @jupyterlab/codemirror -extension:plugin
177+ // Text editor settings for all CodeMirror editors .
178+ // ************************************************
179+
180+ "defaultConfig ": {
183181 "codeFolding": true,
184- "lineNumbers": true,
185- "lineWrap": "off",
186- "showTrailingSpace": true,
187- "wordWrapColumn": 100
182+ "highlightActiveLine": true,
183+ "highlightTrailingWhitespace": true,
184+ "rulers": [
185+ 80,
186+ 100
187+ ]
188188 }
189189}
190190EOF
@@ -228,39 +228,34 @@ cat << EOF > $JUPYTER_CONFIG_ROOT/apputils-extension/palette.jupyterlab-settings
228228 // Command palette settings.
229229 // **************************************
230230
231- // Modal Command Palette
232- // Whether the command palette should be modal or in the left panel.
233- "modal": false
231+ "modal": false // Command palette on the left panel.
234232}
235233EOF
236234
237235# Linter for notebook editors and code editors. Do not autosave on notebook, because it's broken
238236# on multi-line '!some_command \'. Note that autosave doesn't work on text editor anyway.
239- mkdir -p $JUPYTER_CONFIG_ROOT /../\@ ryantam626/ jupyterlab_code_formatter/
240- cat << EOF > $JUPYTER_CONFIG_ROOT /../\@ryantam626/ jupyterlab_code_formatter/settings.jupyterlab-settings
237+ mkdir -p $JUPYTER_CONFIG_ROOT /../jupyterlab_code_formatter/
238+ cat << EOF > $JUPYTER_CONFIG_ROOT /../jupyterlab_code_formatter/settings.jupyterlab-settings
241239{
242240 // Jupyterlab Code Formatter
243- // @ryantam626/ jupyterlab_code_formatter:settings
241+ // jupyterlab_code_formatter:settings
244242 // Jupyterlab Code Formatter settings.
245- // **********************************************
243+ // ***********************************
244+
245+ "formatOnSave": false,
246246
247- // Black Config
248- // Config to be passed into black's format_str function call.
249247 "black": {
250- "line_length": 100
248+ "line_length": 100,
249+ "string_normalization": true
251250 },
252251
253- // Auto format config
254- // Auto format code when save the notebook.
255- "formatOnSave": false,
256-
257252 // Isort Config
258253 // Config to be passed into isort's SortImports function call.
259254 "isort": {
260- "multi_line_output": 3,
261- "include_trailing_comma": true,
262- "force_grid_wrap": 0,
263- "use_parentheses": true,
255+ // "multi_line_output": 3,
256+ // "include_trailing_comma": true,
257+ // "force_grid_wrap": 0,
258+ // "use_parentheses": true,
264259 "line_length": 100
265260 }
266261}
@@ -271,13 +266,15 @@ EOF
271266# (numbers start from 1).
272267# - Do not auto-number headings in output cells.
273268mkdir -p $JUPYTER_CONFIG_ROOT /toc-extension
274- cat << EOF > $JUPYTER_CONFIG_ROOT /toc-extension/plugin .jupyterlab-settings
269+ cat << EOF > $JUPYTER_CONFIG_ROOT /toc-extension/registry .jupyterlab-settings
275270{
276271 // Table of Contents
277272 // @jupyterlab/toc-extension:plugin
278273 // Table of contents settings.
279274 // ********************************
275+
280276 "includeOutput": false,
277+ "numberHeaders": true,
281278 "numberingH1": false
282279}
283280EOF
@@ -334,32 +331,33 @@ cat << EOF > $JUPYTER_CONFIG_ROOT/settingeditor-extension/form-ui.jupyterlab-set
334331 // Settings editor form ui settings.
335332 // *******************************************
336333
337- // Type of editor for the setting.
338- // Set the type of editor to use while editing your settings.
339334 "settingEditorType": "json"
340335}
341336EOF
342337
343338# Disable notification -- Jlab started to get extremely noisy since v3.6.0+
344- mkdir -p $JUPYTER_CONFIG_ROOT /settingeditor -extension
339+ mkdir -p $JUPYTER_CONFIG_ROOT /apputils -extension
345340cat << 'EOF ' > $JUPYTER_CONFIG_ROOT/apputils-extension/notification.jupyterlab-settings
346341{
347342 // Notifications
348343 // @jupyterlab/apputils-extension:notification
349344 // Notifications settings.
350345 // *******************************************
351346
352- // Check for JupyterLab updates
353- // Whether to check for newer version of JupyterLab or not. It requires `fetchNews` to be `true`
354- // to be active. If `true`, it will make a request to a website.
355347 "checkForUpdates": false,
348+ "doNotDisturbMode": true, // Silence all notifications.
349+ "fetchNews": "false"
350+ }
351+ EOF
356352
357- // Silence all notifications
358- // If `true`, no toast notifications will be automatically displayed.
359- "doNotDisturbMode": true,
353+ mkdir -p $JUPYTER_CONFIG_ROOT /completer-extension
354+ cat << 'EOF ' > $JUPYTER_CONFIG_ROOT/completer-extension/manager.jupyterlab-settings
355+ {
356+ // Code Completion
357+ // @jupyterlab/completer-extension:manager
358+ // Code Completion settings.
359+ // ***************************************
360360
361- // Fetch official Jupyter news
362- // Whether to fetch news from Jupyter news feed. If `true`, it will make a request to a website.
363- "fetchNews": "false"
361+ "autoCompletion": true
364362}
365363EOF
0 commit comments