mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-31 13:40:29 +08:00
set dirty flag when output arrives
and when the prompt changes we were previously only setting dirty when execution finishes, leaving dirty=false during many changes until the output is complete
This commit is contained in:
parent
3ac3b254af
commit
22b3efb39d
@ -349,9 +349,11 @@ define([
|
||||
},
|
||||
iopub : {
|
||||
output : function() {
|
||||
that.events.trigger('set_dirty.Notebook', {value: true});
|
||||
that.output_area.handle_output.apply(that.output_area, arguments);
|
||||
},
|
||||
clear_output : function() {
|
||||
that.events.trigger('set_dirty.Notebook', {value: true});
|
||||
that.output_area.handle_clear_output.apply(that.output_area, arguments);
|
||||
},
|
||||
},
|
||||
@ -476,6 +478,7 @@ define([
|
||||
var prompt_html = CodeCell.input_prompt_function(this.input_prompt_number, nline);
|
||||
// This HTML call is okay because the user contents are escaped.
|
||||
this.element.find('div.input_prompt').html(prompt_html);
|
||||
this.events.trigger('set_dirty.Notebook', {value: true});
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user