##// END OF EJS Templates
fixup bad rebase
MinRK -
Show More
@@ -240,7 +240,7 b' var IPython = (function (IPython) {'
240 * @method execute
240 * @method execute
241 */
241 */
242 CodeCell.prototype.execute = function () {
242 CodeCell.prototype.execute = function () {
243 this.output_area.clear_output(true, true, true);
243 this.output_area.clear_output();
244 this.set_input_prompt('*');
244 this.set_input_prompt('*');
245 this.element.addClass("running");
245 this.element.addClass("running");
246 var callbacks = {
246 var callbacks = {
@@ -250,7 +250,7 b' var IPython = (function (IPython) {'
250 'set_next_input': $.proxy(this._handle_set_next_input, this),
250 'set_next_input': $.proxy(this._handle_set_next_input, this),
251 'input_request': $.proxy(this._handle_input_request, this)
251 'input_request': $.proxy(this._handle_input_request, this)
252 };
252 };
253 var msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true});
253 this.last_msg_id = this.session.kernel.execute(this.get_text(), callbacks, {silent: false, store_history: true});
254 };
254 };
255
255
256 /**
256 /**
@@ -386,8 +386,8 b' var IPython = (function (IPython) {'
386 };
386 };
387
387
388
388
389 CodeCell.prototype.clear_output = function (stdout, stderr, other) {
389 CodeCell.prototype.clear_output = function (wait) {
390 this.output_area.clear_output(stdout, stderr, other);
390 this.output_area.clear_output(wait);
391 };
391 };
392
392
393
393
@@ -756,7 +756,7 b' var IPython = (function (IPython) {'
756 var i = this.index_or_selected(index);
756 var i = this.index_or_selected(index);
757 var cell = this.get_selected_cell();
757 var cell = this.get_selected_cell();
758 this.undelete_backup = cell.toJSON();
758 this.undelete_backup = cell.toJSON();
759 $('#undelete_cell').removeClass('ui-state-disabled');
759 $('#undelete_cell').removeClass('disabled');
760 if (this.is_valid_cell_index(i)) {
760 if (this.is_valid_cell_index(i)) {
761 var ce = this.get_cell_element(i);
761 var ce = this.get_cell_element(i);
762 ce.remove();
762 ce.remove();
@@ -1039,11 +1039,11 b' var IPython = (function (IPython) {'
1039 Notebook.prototype.enable_paste = function () {
1039 Notebook.prototype.enable_paste = function () {
1040 var that = this;
1040 var that = this;
1041 if (!this.paste_enabled) {
1041 if (!this.paste_enabled) {
1042 $('#paste_cell_replace').removeClass('ui-state-disabled')
1042 $('#paste_cell_replace').removeClass('disabled')
1043 .on('click', function () {that.paste_cell_replace();});
1043 .on('click', function () {that.paste_cell_replace();});
1044 $('#paste_cell_above').removeClass('ui-state-disabled')
1044 $('#paste_cell_above').removeClass('disabled')
1045 .on('click', function () {that.paste_cell_above();});
1045 .on('click', function () {that.paste_cell_above();});
1046 $('#paste_cell_below').removeClass('ui-state-disabled')
1046 $('#paste_cell_below').removeClass('disabled')
1047 .on('click', function () {that.paste_cell_below();});
1047 .on('click', function () {that.paste_cell_below();});
1048 this.paste_enabled = true;
1048 this.paste_enabled = true;
1049 };
1049 };
@@ -1056,9 +1056,9 b' var IPython = (function (IPython) {'
1056 */
1056 */
1057 Notebook.prototype.disable_paste = function () {
1057 Notebook.prototype.disable_paste = function () {
1058 if (this.paste_enabled) {
1058 if (this.paste_enabled) {
1059 $('#paste_cell_replace').addClass('ui-state-disabled').off('click');
1059 $('#paste_cell_replace').addClass('disabled').off('click');
1060 $('#paste_cell_above').addClass('ui-state-disabled').off('click');
1060 $('#paste_cell_above').addClass('disabled').off('click');
1061 $('#paste_cell_below').addClass('ui-state-disabled').off('click');
1061 $('#paste_cell_below').addClass('disabled').off('click');
1062 this.paste_enabled = false;
1062 this.paste_enabled = false;
1063 };
1063 };
1064 };
1064 };
@@ -1157,7 +1157,7 b' var IPython = (function (IPython) {'
1157 this.undelete_backup = null;
1157 this.undelete_backup = null;
1158 this.undelete_index = null;
1158 this.undelete_index = null;
1159 }
1159 }
1160 $('#undelete_cell').addClass('ui-state-disabled');
1160 $('#undelete_cell').addClass('disabled');
1161 }
1161 }
1162
1162
1163 // Split/merge
1163 // Split/merge
@@ -1360,7 +1360,7 b' var IPython = (function (IPython) {'
1360 var cells = this.get_cells();
1360 var cells = this.get_cells();
1361 for (var i=0; i<ncells; i++) {
1361 for (var i=0; i<ncells; i++) {
1362 if (cells[i] instanceof IPython.CodeCell) {
1362 if (cells[i] instanceof IPython.CodeCell) {
1363 cells[i].clear_output(true,true,true);
1363 cells[i].clear_output();
1364 // Make all In[] prompts blank, as well
1364 // Make all In[] prompts blank, as well
1365 // TODO: make this configurable (via checkbox?)
1365 // TODO: make this configurable (via checkbox?)
1366 cells[i].set_input_prompt();
1366 cells[i].set_input_prompt();
@@ -1873,7 +1873,7 b' var IPython = (function (IPython) {'
1873 * Request a notebook's data from the server.
1873 * Request a notebook's data from the server.
1874 *
1874 *
1875 * @method load_notebook
1875 * @method load_notebook
1876 * @param {String} notebook_naem and path A notebook to load
1876 * @param {String} notebook_name and path A notebook to load
1877 */
1877 */
1878 Notebook.prototype.load_notebook = function (notebook_name, notebook_path) {
1878 Notebook.prototype.load_notebook = function (notebook_name, notebook_path) {
1879 var that = this;
1879 var that = this;
@@ -1896,7 +1896,7 b' var IPython = (function (IPython) {'
1896 this.notebook_name
1896 this.notebook_name
1897 );
1897 );
1898 $.ajax(url, settings);
1898 $.ajax(url, settings);
1899 };
1899 };
1900
1900
1901 /**
1901 /**
1902 * Success callback for loading a notebook from the server.
1902 * Success callback for loading a notebook from the server.
@@ -31,7 +31,7 b' var IPython = (function (IPython) {'
31 this.stdin_channel = null;
31 this.stdin_channel = null;
32 this.base_url = base_url;
32 this.base_url = base_url;
33 this.running = false;
33 this.running = false;
34 this.username= "username";
34 this.username = "username";
35 this.session_id = utils.uuid();
35 this.session_id = utils.uuid();
36 this._msg_callbacks = {};
36 this._msg_callbacks = {};
37
37
@@ -86,11 +86,11 b' class="notebook_app"'
86 <ul class="dropdown-menu">
86 <ul class="dropdown-menu">
87 <li id="cut_cell"><a href="#">Cut Cell</a></li>
87 <li id="cut_cell"><a href="#">Cut Cell</a></li>
88 <li id="copy_cell"><a href="#">Copy Cell</a></li>
88 <li id="copy_cell"><a href="#">Copy Cell</a></li>
89 <li id="paste_cell_above" class="ui-state-disabled"><a href="#">Paste Cell Above</a></li>
89 <li id="paste_cell_above" class="disabled"><a href="#">Paste Cell Above</a></li>
90 <li id="paste_cell_below" class="ui-state-disabled"><a href="#">Paste Cell Below</a></li>
90 <li id="paste_cell_below" class="disabled"><a href="#">Paste Cell Below</a></li>
91 <li id="paste_cell_replace" class="ui-state-disabled"><a href="#">Paste Cell &amp; Replace</a></li>
91 <li id="paste_cell_replace" class="disabled"><a href="#">Paste Cell &amp; Replace</a></li>
92 <li id="delete_cell"><a href="#">Delete Cell</a></li>
92 <li id="delete_cell"><a href="#">Delete Cell</a></li>
93 <li id="undelete_cell" class="ui-state-disabled"><a href="#">Undo Delete Cell</a></li>
93 <li id="undelete_cell" class="disabled"><a href="#">Undo Delete Cell</a></li>
94 <li class="divider"></li>
94 <li class="divider"></li>
95 <li id="split_cell"><a href="#">Split Cell</a></li>
95 <li id="split_cell"><a href="#">Split Cell</a></li>
96 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
96 <li id="merge_cell_above"><a href="#">Merge Cell Above</a></li>
General Comments 0
You need to be logged in to leave comments. Login now