Skip to content

Commit

Permalink
Merge pull request #946 from juhasch/fetaure/runtools
Browse files Browse the repository at this point in the history
Use a scheduling list for running marked cells
  • Loading branch information
juhasch authored Sep 24, 2017
2 parents 90a15a4 + a64ff0d commit 862c6b3
Show file tree
Hide file tree
Showing 13 changed files with 659 additions and 369 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


CodeMirror.defineOption("cellstate", false, function(cm, val, old) {
if (old && old != CodeMirror.Init) {
cm.clearGutter(cm.state.cellState.options.gutter);
cm.state.cellState = null;
cm.off("gutterClick", onGutterClick);
cm.off("change", onChange);
cm.off("viewportChange", onViewportChange);
cm.off("swapDoc", onChange);
}
if (val) {
cm.state.cellState = new State(parseOptions(val));
updateInViewport(cm);
cm.on("gutterClick", onGutterClick);
cm.on("change", onChange);
cm.on("viewportChange", onViewportChange);
cm.on("swapDoc", onChange);
}
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.CodeMirror-foldgutter {
width: .9em;
.CodeMirror-cellstate {
width: 0.5em;
}


Binary file modified src/jupyter_contrib_nbextensions/nbextensions/runtools/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 862c6b3

Please sign in to comment.