<jupyter_start><jupyter_text>3.5. Configuring the Jupyter Notebook<jupyter_code>%ls ~/.jupyter/jupyter_notebook_config.py
%cat ~/.jupyter/jupyter_notebook_config.py<jupyter_output># Configuration file for jupyter-notebook.

#-------------------------------------------------------
# Application(SingletonConfigurable) configuration
#-------------------------------------------------------

## This is an application.

## The date format used by logging formatters
#c.Application.log_datefmt = '%Y-%m-%d %H:%M:%S'

[...]

#-------------------------------------------------------
# JupyterApp(Application) configuration
#-------------------------------------------------------

## Base class for Jupyter applications

## Answer yes to any prompts.
#c.JupyterApp.answer_yes = False

## Full path of a config file.
#c.JupyterApp.config_file = ''

...<jupyter_text>```c.ContentsManager.untitled_notebook = 'MyNotebook'```<jupyter_code>%ls ~/.jupyter/nbconfig/
%cat ~/.jupyter/nbconfig/notebook.json
%%javascript
var cell = Jupyter.notebook.get_selected_cell();
var config = cell.config;
var patch = {
      CodeCell:{
        cm_config: {autoCloseBrackets: false}
      }
    }
config.update(patch)
%cat ~/.jupyter/nbconfig/notebook.json
from notebook.services.config import ConfigManager
c = ConfigManager()
c.get('notebook').get('CodeCell')
c.update('notebook', {"CodeCell":
         {"cm_config": {"autoCloseBrackets": True}}})
%cat ~/.jupyter/nbconfig/notebook.json<jupyter_output>{
  "Cell": {
    "cm_config": {
      "lineNumbers": false
    }
  },
  "Notebook": {
    "Header": false,
    "Toolbar": false
  },
  "CodeCell": {
    "cm_config": {
      "autoCloseBrackets": true
    }
  }
}
{'fraction_non_alphanumeric': 0.2647754137115839, 'fraction_numerical': 0.001182033096926714, 'mean_word_length': 2.3792415169660677, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '49978', 'license': 'MIT', 'n_tokens_mistral': 559, 'n_tokens_neox': 552, 'n_words': 97, 'path': 'chapter03_notebook/05_custom_notebook.ipynb', 'repo_name': 'shelly77/cookbook-2nd-code', 'size': '1692'}