# Cannot login into huggingface hub from Paperspace

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%3E%5C
**Category:** Beginners\
**Created:** [October 2, 2022, 2:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893 "2022-10-02T14:15:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![otmarjr](https://avatars.discourse-cdn.com/v4/letter/o/ecb155/32.png) [@otmarjr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fotmarjr)%5C
**Post date:** [October 2, 2022, 2:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F1 "2022-10-02T14:15:37Z")

</div>

Hello,

I’m trying to login into huggingface hub from a notebook in Paperspace service, and after pasting the access token and clicking on the login button below, nothing happens.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/2/2fad26dcf2b546ced6b906879b87adc1a532e9b1.png)

I’ve contacted their support, and they told me their support is limited because huggingface is a 3rd party software.

I must add that I could successfully connect from Google Colab notebok. However, from huggingface hub, I tried to save the token in a file, as mentioned at this topic [How to login to Huggingface Hub with Access Token - #14 by BackfiringDatsun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-login-to-huggingface-hub-with-access-token%2F22498%2F14) , but still, I could not connect.

Any ideas?

---

<div class="post-metadata">

**Author:** ![gooter](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gooter](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgooter)%5C
**Post date:** [October 6, 2022, 6:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F2 "2022-10-06T18:50:42Z")

</div>

I am having the same issue. Wondering if you have found a solution?

---

<div class="post-metadata">

**Author:** ![otmarjr](https://avatars.discourse-cdn.com/v4/letter/o/ecb155/32.png) [@otmarjr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fotmarjr)%5C
**Post date:** [October 6, 2022, 8:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F3 "2022-10-06T20:06:49Z")

</div>

No solution found yet ☹

---

<div class="post-metadata">

**Author:** ![liujxing](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@liujxing](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fliujxing)%5C
**Post date:** [October 26, 2022, 2:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F4 "2022-10-26T02:01:45Z")

</div>

Here is my solution: first open a terminal, my way is to go from paperspace notebook to jupyterlab notebook, and create a terminal from launcher page, then run `huggingface-cli login` in the terminal then paste your huggingface hub token. Now go back to the notebook, you should be able to load your model and dataset by passing `use_auth_token=True` in `datasets.load_dataset` function.

---

<div class="post-metadata">

**Author:** ![MarvinC](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MarvinC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMarvinC)%5C
**Post date:** [December 2, 2022, 2:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F5 "2022-12-02T14:05:06Z")

</div>

For me, the solution of liujxing didn’t work, unfortunately.  
However, on medium is a short tutorial with a code example you can copy.  
Have a look here: [Logging in to HuggingFace from Jupyter notebook without interactive prompt | by yash khandelwal | Medium](https://medium.com/@yashsk8/logging-in-to-huggingface-from-jupyter-notebook-without-interactive-prompt-2cb945b4905c)

---

<div class="post-metadata">

**Author:** ![asipulica](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/asipulica/32/54335_2.png) [@asipulica](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasipulica)%5C
**Post date:** [September 27, 2025, 1:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-login-into-huggingface-hub-from-paperspace%2F23893%2F6 "2025-09-27T13:45:28Z")

</div>

if anyone has still the same problem this code worked for me:

```python
from huggingface_hub import login
login(token="YOUR_ACCESS_TOKEN")

```
