`notebook_login` showing unavoidable warning on Google Colab
See original GitHub issueDescribe the bug
When a user logs in using
from huggingface_hub import notebook_login
notebook_login()
in a Google Colab, even when everything goes right, the user sees this warning which they have no control over
I think that this could be suppressed on Colab
Reproduction
No response
Logs
No response
System Info
Google Colab on `huggingface_hub == 0.9.1`
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Warning: This notebook was not authored by Google How to ...
I am a newbie to Colabs and want to work through this tutorial on Linear Algebra. There is a snippet !pip install -U...
Read more >Suppress spurious warning on google colab #5330 - GitHub
Suppress spurious warning on google colab, the warning was generated to check for notebook version being 6 or higher but is not required...
Read more >Google Colab
You can search Colab notebooks using Google Drive. Clicking on the Colab logo at the top left of the notebook view will show...
Read more >Getting Started with Google CoLab | How to use ... - YouTube
In this video, we'll be discussing about the Google CoLab. Google Colab is a free cloud service and now it supports free GPU!...
Read more >Google Colab - Sharing Notebooks! - YouTube
Tutorial on how to share Google Colab notebooks across different Google users.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I see 2 things here:
Showing the warning in a google colab is not super useful as I assume 99% of the users don’t care about the git credential store (please correct me if I’m wrong). What I suggest is to update
huggingface_hub
to check if we are in a google colab and if yes, rungit config --global credential.helper store
in the background and disable the warning. It would be a very specific fix but I feel google colab is used a lot to promote our work.As @julien-c mentioned, we could do better than using the git credential store. Let’s create a separate issue to address it: https://github.com/huggingface/huggingface_hub/issues/1051
If that’s fine with everyone, I’ll address 1. before next release. Point 2. has slightly less priority in my opinion.
I also find it a bit annoying locally - but I thought maybe it was indeed some setting up I could do on my machine to fix - but on colab I thought the user has no control over it