# Cannot login into huggingface hub from Paperspace

**URL:** <https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893>\
**Category:** Beginners\
**Created:** [October 2, 2022, 2:15pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893 "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](https://discuss.huggingface.co/u/otmarjr)\
**Post date:** [October 2, 2022, 2:15pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/1 "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](https://discuss.huggingface.co/t/how-to-login-to-huggingface-hub-with-access-token/22498/14) , 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](https://discuss.huggingface.co/u/gooter)\
**Post date:** [October 6, 2022, 6:50pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/2 "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](https://discuss.huggingface.co/u/otmarjr)\
**Post date:** [October 6, 2022, 8:06pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/3 "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](https://discuss.huggingface.co/u/liujxing)\
**Post date:** [October 26, 2022, 2:01am UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/4 "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](https://discuss.huggingface.co/u/MarvinC)\
**Post date:** [December 2, 2022, 2:05pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/5 "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](https://discuss.huggingface.co/u/asipulica)\
**Post date:** [September 27, 2025, 1:45pm UTC](https://discuss.huggingface.co/t/cannot-login-into-huggingface-hub-from-paperspace/23893/6 "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")

```
