# Cannot login huggingface in notebook: Loading wigdet

**URL:** <https://discuss.huggingface.co/t/cannot-login-huggingface-in-notebook-loading-wigdet/52277>\
**Category:** Beginners\
**Created:** [August 26, 2023, 2:55pm UTC](https://discuss.huggingface.co/t/cannot-login-huggingface-in-notebook-loading-wigdet/52277 "2023-08-26T14:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toflamus](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/toflamus/32/18812_2.png) [@Toflamus](https://discuss.huggingface.co/u/Toflamus)\
**Post date:** [August 26, 2023, 2:55pm UTC](https://discuss.huggingface.co/t/cannot-login-huggingface-in-notebook-loading-wigdet/52277/1 "2023-08-26T14:55:17Z")

</div>

The widgets just cannot print out. It keeps “loading widgets” for years. Can I log in using other method in a notebook or just fix the bug?

Here is my code

```python
from huggingface_hub import notebook_login
notebook_login()

```

Here is the output

```auto
Loading widget...

```

Anyone has any ideas?

---

<div class="post-metadata">

**Author:** ![mar-yam1497](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@mar-yam1497](https://discuss.huggingface.co/u/mar-yam1497)\
**Post date:** [December 31, 2023, 8:56am UTC](https://discuss.huggingface.co/t/cannot-login-huggingface-in-notebook-loading-wigdet/52277/2 "2023-12-31T08:56:56Z")

</div>

Same issue - did you find a solution?

---

<div class="post-metadata">

**Author:** ![duraad](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/duraad/32/23495_2.png) [@duraad](https://discuss.huggingface.co/u/duraad)\
**Post date:** [February 4, 2024, 9:36am UTC](https://discuss.huggingface.co/t/cannot-login-huggingface-in-notebook-loading-wigdet/52277/3 "2024-02-04T09:36:56Z")

</div>

> <https://github.com/huggingface/huggingface_hub/issues/752#issuecomment-1480943873>
>
> Hi, I am using jupyternotebook via VScode. But When I run
> \`\`\`
> from huggingface…\_hub import notebook\_login
> 
> notebook\_login()
> \`\`\`
> 
> I copy the Token, but I cannot paste it in the jupyternotebook in VScode. How to solve it? 
> \`\`\`
> !huggingface-cli login
> \`\`\`
> doesn't work either.
> 
> 
> Thanks!

This fix helped me.  
You can also try if this words for you.
