Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add ^M-O for toggling output scroll

  • Loading branch information...
commit c5e907b5130a574129389aed2d6f7a2a4350877a 1 parent 7aed2cf
@minrk authored
View
5 IPython/frontend/html/notebook/static/js/codecell.js
@@ -214,6 +214,11 @@ var IPython = (function (IPython) {
};
+ CodeCell.prototype.toggle_output_scroll = function () {
+ this.output_area.toggle_scroll();
+ };
+
+
CodeCell.prototype.set_input_prompt = function (number) {
this.input_prompt_number = number;
var ns = number || " ";
View
12 IPython/frontend/html/notebook/static/js/notebook.js
@@ -191,7 +191,11 @@ var IPython = (function (IPython) {
return false;
} else if (event.which === 79 && that.control_key_active) {
// Toggle output = o
- that.toggle_output();
+ if (event.shiftKey){
+ that.toggle_output_scroll();
+ } else {
+ that.toggle_output();
+ }
that.control_key_active = false;
return false;
} else if (event.which === 83 && that.control_key_active) {
@@ -865,6 +869,12 @@ var IPython = (function (IPython) {
};
+ Notebook.prototype.toggle_output_scroll = function (index) {
+ var i = this.index_or_selected(index);
+ this.get_cell(i).toggle_output_scroll();
+ };
+
+
Notebook.prototype.collapse_all_output = function () {
var ncells = this.ncells();
var cells = this.get_cells();
Please sign in to comment.
Something went wrong with that request. Please try again.