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 'Reset to Original' feature? #131

Open
pierrepo opened this issue Apr 22, 2020 · 4 comments
Open

Add a 'Reset to Original' feature? #131

pierrepo opened this issue Apr 22, 2020 · 4 comments
Labels
question Further information is requested UI

Comments

@pierrepo
Copy link
Contributor

@CVandiedonck recently had a nice user experience with the "Reset to Original" feature:

2020-04-20_16-17-25

It resets a notebook to its original state.

Are you aware of this feature? Is it a Jupyter Lab extension?

@pierrepo pierrepo added question Further information is requested UI labels Apr 22, 2020
@pierrepo
Copy link
Contributor Author

Apparently this feature is provided by the nbhosting projects. Not sure, it can be easily reused...

@jtpio
Copy link
Member

jtpio commented Apr 22, 2020

For now a user can rename or move the file that comes from the original image, and restart the server:

  1. Rename ~/materials/intro.ipynb to ~/materials/my_notebook.ipynb (or move it somewhere else)
  2. Stop and restart the server
  3. On the next server startup, the original files will be copied
  4. Running ls ~/materials should give something similar to:
$ ls ~/materials
intro.ipynb    my_notebook.ipynb

@pierrepo
Copy link
Contributor Author

Thanks for your input @jtpio
This is indeed a nice way to reset a whole environment, not only the notebook itself but other files as well (data provided within the env for instance).
Of course, this is less straightforward than just pushing a button but it is also more powerfull.

@CVandiedonck do you think it will be sufficient?

@CVandiedonck
Copy link

I hesitate. I suspect that students who might need to reset the original document are not the ones who will be confortable with coding. The way proposed by @jtpio is more suited for advanced students.
I guess it depends on the complexity of implementing such a button.
Alternativeley, could we add a "help" tool indicating the above solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested UI
Projects
None yet
Development

No branches or pull requests

3 participants