Skip to content

Commit a5e64c3

Browse files
committed
fix(notebook): Allow copy operation on modified, read-only
notebooks Should close #2541
1 parent 11ba6be commit a5e64c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/static/notebook/js/notebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ define([
29102910
var w = window.open('', IPython._target);
29112911
var parent = utils.url_path_split(this.notebook_path)[0];
29122912
var p;
2913-
if (this.dirty) {
2913+
if (this.dirty && this.writable) {
29142914
p = this.save_notebook(true);
29152915
} else {
29162916
p = Promise.resolve();

0 commit comments

Comments
 (0)