question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`notebook_login` showing unavoidable warning on Google Colab

See original GitHub issue

Describe 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 image

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:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
Wauplincommented, Sep 14, 2022

So I see 2 things here:

  1. 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, run git 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.

  2. 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.

2reactions
apolinariocommented, Sep 12, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found