Closed rnikutta closed 5 months ago
@stephjuneau @jacquesalice @galaxyumi I've updated the DL NB template:
I also edited the cell that lists all available datasets, and commented out the Login cell.
Please kindly review the template NB. The Disclaimer and Acks cell will be used to update all other NBs in the next step.
It's a good point.. The reason I commented it out is because in most cases (I think) a user running a NB will be logged in, including when we test the NBs ourselves (which then always evaluates to my username...). To avoid having to explicitly use ac.logout(), then remove that code again, and re-run the NB, I thought it was easier to comment out the cell. The text just before the auth cell actually says explicitly to un-comment the cell, should a login be needed.
What do you think?
It's a good point.. The reason I commented it out is because in most cases (I think) a user running a NB will be logged in, including when we test the NBs ourselves (which then always evaluates to my username...). To avoid having to explicitly use ac.logout(), then remove that code again, and re-run the NB, I thought it was easier to comment out the cell. The text just before the auth cell actually says explicitly to un-comment the cell, should a login be needed.
What do you think?
If we comment it out in this notebook, should we comment it out in all notebooks?
I've been suggesting as much in most of the NBs that I've been reviewing over the past months..
(though I don't think we need to start a big campaign to change that everywhere. But if we get to edit a NB for any reason down the line, this can be changed then.)
I understand the argument better for testing although maybe it could show being logged as "demo00". I still think that there is some value in showing that the user is logged in or not but it's a pretty small change if we were to change our mind so I'll go ahead and approve the PR as well. I also agree that we don't need a concerted effort to change in all notebooks.
Thank you, will merge!
…commented out login cell.