Skip to content

Commit 48b6ef0

Browse files
marcndostevhliu
andauthored
Add Hugging Face authentication procedure for IDEs (PyCharm, VS Code,… (#38954)
* Add Hugging Face authentication procedure for IDEs (PyCharm, VS Code, etc.) * Update quicktour.md --------- Co-authored-by: Steven Liu <[email protected]>
1 parent ea9a309 commit 48b6ef0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/source/en/quicktour.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,29 @@ To start, we recommend creating a Hugging Face [account](https://hf.co/join). An
3232

3333
Create a [User Access Token](https://hf.co/docs/hub/security-tokens#user-access-tokens) and log in to your account.
3434

35+
<hfoptions id="authenticate">
36+
<hfoption id="notebook">
37+
38+
Paste your User Access Token into [`~huggingface_hub.notebook_login`] when prompted to log in.
39+
3540
```py
3641
from huggingface_hub import notebook_login
3742

3843
notebook_login()
3944
```
4045

46+
</hfoption>
47+
<hfoption id="CLI">
48+
49+
Make sure the [huggingface_hub[cli]](https://huggingface.co/docs/huggingface_hub/guides/cli#getting-started) package is installed and run the command below. Paste your User Access Token when prompted to log in.
50+
51+
```bash
52+
huggingface-cli login
53+
```
54+
55+
</hfoption>
56+
</hfoptions>
57+
4158
Install a machine learning framework.
4259

4360
<hfoptions id="installation">

0 commit comments

Comments
 (0)