Home > Mobile >  Reset google collab for every new user
Reset google collab for every new user

Time:05-04

I am creating an assignment where I have written a few Python functions as below in google collab. I expect every student to click on this collab link and fill out those functions.As this is an assignment, even if one student completes and saves it should get saved in the main collab file. How do I achieve this? Should I lock the cells so that they can copy this file on their google drive and edit it or is there any other way?

def add(a,b)
"""To Do """

Thanks, Xi

CodePudding user response:

You can give your students "viewer-only" permissions to your notebook.

Click on the "Share" link in the top-right corner of the Colab screen:

Share button screenshot

Then you can list the e-mail addresses of your students in the "Share with people and groups" box and select "Viewer" in the drop-down next to each address.

When they receive the link to the notebook and edit it, they will not be able to save their changes in that notebook. They will get a message like this:

save copy screenshot

Hope this helps.

  • Related