From 9c1c7a7e32118942a06eb39909c942e628090c14 2014-03-18 18:14:24 From: Fernando Perez Date: 2014-03-18 18:14:24 Subject: [PATCH] Merge pull request #5372 from minrk/no-close-strings Don't autoclose strings, because CodeMirror's behavior makes it confusing and awkward to type triple-quoted strings (and these are very common in Python). An issue about this was filed in CodeMirror itself: https://github.com/marijnh/CodeMirror/issues/2385 --- diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index b81e94a..c799681 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -102,7 +102,8 @@ var IPython = (function (IPython) { mode: 'ipython', theme: 'ipython', matchBrackets: true, - autoCloseBrackets: true + // don't auto-close strings because of CodeMirror #2385 + autoCloseBrackets: "()[]{}" } };