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 the same notebook should update the notebook instead of duplicate #36

Closed
pplonski opened this issue Feb 7, 2022 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pplonski
Copy link
Contributor

pplonski commented Feb 7, 2022

Right now if we run twice the following command:

mercury add notebook_1.ipynb

We will have two notebooks as apps in the Mercury. Please do not add the duplicate, just update the current notebook. By update I mean:

  • use the old ID
  • run nbconvert on the new notebook
  • display a message that notebook is updated (not added)
@pplonski pplonski self-assigned this Feb 7, 2022
@pplonski pplonski added the enhancement New feature or request label Feb 7, 2022
@pplonski pplonski added this to the 0.3.0 milestone Feb 7, 2022
@pplonski pplonski pinned this issue Feb 7, 2022
@pplonski
Copy link
Contributor Author

pplonski commented Feb 8, 2022

When user adds new notebook path then a it will be added to the Mercury. In the case of the notebook path that is already in the Mercury the notebook will be updated.

@pplonski pplonski closed this as completed Feb 8, 2022
@pplonski pplonski unpinned this issue Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant