Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save udaragangabadage/96a40031b1ac39c0579090e8279b88d2 to your computer and use it in GitHub Desktop.
Save udaragangabadage/96a40031b1ac39c0579090e8279b88d2 to your computer and use it in GitHub Desktop.
can't disable auto close brackets on JNotebook
I agree that autoclosing brackets can be tricky, but not that it should be removed entirely.
Here's how you can set it in frontend config with the current code:
# Run this in Python once, it should take effect permanently
from notebook.services.config import ConfigManager
c = ConfigManager()
c.update('notebook', {"CodeCell": {"cm_config": {"autoCloseBrackets": False}}})
To restore the default, do the same with None in place of False.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment