From dd84cce08031a602ec0b5938c148f610b264e403 Mon Sep 17 00:00:00 2001 From: Lucain Date: Fri, 22 Sep 2023 11:58:44 +0200 Subject: [PATCH] Fix broken tips in login reference (#1688) --- src/huggingface_hub/_login.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/huggingface_hub/_login.py b/src/huggingface_hub/_login.py index 4bbb1c9235..2185654884 100644 --- a/src/huggingface_hub/_login.py +++ b/src/huggingface_hub/_login.py @@ -54,15 +54,19 @@ def login( a cli command that wraps [`login`]. + [`login`] is a drop-in replacement method for [`notebook_login`] as it wraps and extends its capabilities. + + When the token is not passed, [`login`] will automatically detect if the script runs in a notebook or not. However, this detection might not be accurate due to the variety of notebooks that exists nowadays. If that is the case, you can always force the UI by using [`notebook_login`] or [`interpreter_login`]. + Args: