From a5e64c3f779c7f0b67028aabf435a29f2bc05354 Mon Sep 17 00:00:00 2001 From: madhu Date: Wed, 20 Sep 2017 16:13:06 +0530 Subject: [PATCH] fix(notebook): Allow copy operation on modified, read-only notebooks Should close #2541 --- notebook/static/notebook/js/notebook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/notebook.js b/notebook/static/notebook/js/notebook.js index 85452ba86b..8fedb6a6e0 100644 --- a/notebook/static/notebook/js/notebook.js +++ b/notebook/static/notebook/js/notebook.js @@ -2910,7 +2910,7 @@ define([ var w = window.open('', IPython._target); var parent = utils.url_path_split(this.notebook_path)[0]; var p; - if (this.dirty) { + if (this.dirty && this.writable) { p = this.save_notebook(true); } else { p = Promise.resolve();