Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "duplicate notebook" option that keeps the old and new workbooks open #7368

Closed
JasonWeill opened this issue May 13, 2024 · 1 comment · Fixed by #7374
Closed

Add a "duplicate notebook" option that keeps the old and new workbooks open #7368

JasonWeill opened this issue May 13, 2024 · 1 comment · Fixed by #7374

Comments

@JasonWeill
Copy link
Collaborator

The option to duplicate the current notebook doesn't exist any more. I'm guessing "Save as" is the replacement. However, after using this, whilst the newly named notebook pops up in a new tab correctly, the old tab no longer works -- the notebook disappears and the error "kernel unknown" appears. The desired behavior is to have both the new and old notebooks running in separate kernels in separate windows/tabs.

Originally reported by @jph00 in #7041 (comment).

In JupyterLab there is "Duplicate Notebook" option which was recently exposed in command palette and in the tab context menu jupyterlab/jupyterlab#12870. It appears to be an unintentional omission that it was left out in Notebook, it would be a good first issue to restore it by adding docmanager:duplicate to menus and command palette where needed (which might be as simple as just changing a few JSON files, see jupyterlab/jupyterlab#12870)

There is also a button in the tree view:

image

Reply posted by @krassowski in #7041 (comment).

@JasonWeill
Copy link
Collaborator Author

There is already a "duplicate" option in the context menu that appears when I right-click on a file in the tree view.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant