How to login via notebook_login()

Hello,

How do you login with the below, but inputting the login token directly so there is no pop up?

huggingface_hub import notebook_login

notebook_login()

Many thanks :slight_smile:

Hi @antoine2323231 , this was a quite requested feature so we implemented it in Unified login/logout methods by Wauplin 路 Pull Request #1111 路 huggingface/huggingface_hub 路 GitHub. See PR description for how to use it.

This will be part of next huggingface_hub release. Otherwise you can also install from the main branch with pip uninstall huggingface_hub && pip install git+https://github.com/huggingface/huggingface_hub.