From 250b4323ae11fb0572af7d3fc5ba87ed6e9cb967 Mon Sep 17 00:00:00 2001 From: Mariusz Jurowicz Date: Fri, 13 Oct 2017 16:09:40 +0200 Subject: [PATCH] #6137 add commenting feature to newly created cells --- beakerx/js/src/extension.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/beakerx/js/src/extension.js b/beakerx/js/src/extension.js index 776c90d353..5d4e1fbd3d 100644 --- a/beakerx/js/src/extension.js +++ b/beakerx/js/src/extension.js @@ -126,16 +126,15 @@ define([ } }); }); - - Jupyter.notebook.get_cells().map(function(cell, i) { - if (cell.cell_type === 'code'){ - setCodeMirrorLineComment(cell.code_mirror); - } - }); }); Jupyter.notebook.events.on('kernel_interrupting.Kernel', function() { interrupt(); }); + Jupyter.notebook.get_cells().map(function(cell, i) { + if (cell.cell_type === 'code'){ + setCodeMirrorLineComment(cell.code_mirror); + } + }); } installKernelHandler();