Have you ever found the autocompletion of certain characters like brackets or quotes to be an annoyance in Jupyter? If so here's how to change the configuration to disable this.

There's 2 main ways to do this, you can edit the configuration file directly or you can do it from code in the notebook. The following instructions have been tested on version 4.4.0.

From configuration file

You will need to put this into the Jupyter configuration directory. To find the correct location for your configuration files you can run:

jupyter --paths

Then create or modify the nbconfig/notebook.json file to contain this section for CodeCell behavior:

{
  "CodeCell": {
    "cm_config": {
      "autoCloseBrackets": false
    }
  }
}

Note you may need to refresh the browser to get this to apply.

From code

from notebook.services.config import ConfigManager
c = ConfigManager()
c.update('notebook', {"CodeCell": {"cm_config": {"autoCloseBrackets": False}}})

Note you may need to refresh the browser to get this to apply.

This is just an automated version of editing the configuration file directly. This file will go in the first configuration path as seen in jupyter --paths, in my case this was ~/.jupyter/nbconfig/notebook.json.