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

Could we have something that's more intuitive for resetting versions? #145

Open
sunnyosun opened this issue Jul 11, 2022 · 2 comments
Open

Comments

@sunnyosun
Copy link
Member

Currently, I do:
Screen Shot 2022-07-11 at 22 01 02

@Koncopd
Copy link
Member

Koncopd commented Jul 12, 2022

Do you mean to reset from non-draft to draft?

@falexwolf
Copy link
Member

I think we need a simple way for two things:

  • Manually setting the version of the current notebook also outside of the publish() function. The publish() function is a high-level convenience wrapper that aggregates a couple of steps that are included in the publishing process. Maybe meta.store.version = "draft" followed by meta.store.write()?
  • Re-initializing a notebook. Say, you copy and paste a notebook because you want to re-use some of the code in it. You'll want to call nbproject.init() and assign a new ID and set the version to draft and set time_init to datetime.now().

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

No branches or pull requests

3 participants