I was being dense. The answer was right in front of me all the time.

{

 "Notebook": {

   "Header": false

 },

 "CodeCell": {

   "cm_config": {

     "lineNumbers": true,

     "autoCloseBrackets": false

   }

 }

}



On Friday, April 14, 2017 at 1:05:46 PM UTC-4, Milos Miljkovic wrote:
>
> Hiya,
>
> By default CodeMirror sets closing of ()[]{}''"" to auto. I thought that 
> the new way of defining CodeMirror config options is to put them in 
> $HOME/.jupyter/nbconfig/notebook.json, like this:
>
> {
>
>  "Notebook": {
>
>    "Header": false,
>
>    "Toolbar": false
>
>  },
>
>  "Cell": {
>
>    "cm_config": {
>
>      "lineNumbers": true,
>
>      "autoCloseBrackets": false
>
>    }
>
>  }
>
> }
>
> lineNumbers is working but autoCloseBrackets is not. Any ideas why or how 
> to tap into CodeMirror config options? I used to do this before 5.0 NB 
> release in custom.js like:
>
>
> require([
>     'base/js/namespace',
>     'base/js/events'],
>     $([IPython.events]).on('app_initialized.NotebookApp', function() {
>
>     IPython.CodeCell.options_default.cm_config.autoCloseBrackets = false;
>
>
> }));
>
>
> but that also is not working.
>
>
> Cheers,
>
>
> Milos.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/97faeee7-b108-40d1-91a4-829c5f0881ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to