Has there been any further work on this?
I accidentally extensively edited a notebook that was read-only on the disk and my changes are permanently lost it seems; despite having the window open I can find no mechanism other than copying and pasting every cell to save my changes, even after the notebook is made writable on the disk.
I had a file on disk with read-only permissions and I modified it to be able it to be written but I was still not able to save my notebook after extensive edits. As a workaround, using the web browser debugger, I put a break point in Notebook.prototype.save_notebook and set this.writable = true. I was then able to save the notebook and retain my changes.
@gnestor @takluyver I noticed that the copy handler does accept a 'to_path', but the POST calls from contents.js on the client side only set the copy_from. Would you be open to accepting a PR for the Save as feature ?
I'm thinking of adding a modal that lets the user enter a path, checks if the user has permissions to write to that path and if so, save it there.
This would be great for copying shared read-only notebooks as well.
Yes, I think so. There's a PR here, but it seems to have stalled: https://github.com/jupyter/notebook/pull/3071
This is still an issue.
Is someone working on this?
Else I will implement this myself, with inspiration from: https://github.com/pangeo-data/helm-chart/pull/44#issuecomment-399151464
Most helpful comment
I had a file on disk with read-only permissions and I modified it to be able it to be written but I was still not able to save my notebook after extensive edits. As a workaround, using the web browser debugger, I put a break point in Notebook.prototype.save_notebook and set
this.writable = true. I was then able to save the notebook and retain my changes.