Skip to content

Conversation

@toonijn
Copy link
Contributor

@toonijn toonijn commented Mar 18, 2020

This PR fixes #1324.

When edits were made in a read-only notebook there was no way to preserve these changes.
(See also Stack Overflow: How to save changes in read-only Jupyter Notebook)

@toonijn toonijn force-pushed the save_as_readonly branch from b740207 to 03e2698 Compare April 9, 2020 15:00
# even after a refresh
refresh_notebook(notebook)
assert notebook.get_cell_contents(index=0) == test_content_0
assert notebook.get_cell_contents(index=1) == test_content_1 No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a newline.

Copy link
Member

@kevin-bates kevin-bates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me, but I don't have the front-end knowledge to know if this introduces any issues or side-effects. Hoping we can find a reviewer in this area soon.

@kevin-bates kevin-bates mentioned this pull request May 5, 2020
24 tasks
@blink1073 blink1073 added this to the 6.1 milestone May 15, 2020
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@blink1073 blink1073 merged commit b278fa6 into jupyter:master May 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read-only notebooks can't be unlocked for editing

3 participants