-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token cannot be pasted in JupyterNotebook in VScode #752
Comments
I copy the token and I want to paste it in the Token textbox, but nothing show in the textbox. I am sure I copied cause I can paste it anywhere except the Token textbox. Click login and Use Password button don't work. |
Sounds like an issue with the widgets not properly working in VSCode. There is little we can do on our side to fix it, you should raise the issue on their repos. |
As a temporary workaround, since you're running on your personal machine and since the token is shared on a user-level, you should be able to do |
I experienced the same issue. As a workaround, you could open your .ipynb in Jupyter Notebook, run notebook_login(), add your token and continue. After saving, you can continue in VSCode. |
(related issue on from the forum: https://discuss.huggingface.co/t/notebook-login-not-working-in-jupyterlab/21747) |
I was having the same issue in Jupyter and I was able to log in with:
|
For anyone landing on this issue, here is a summary of how to login with the Hub: The preferred way: use
|
Thank you. |
Thanks. I use vs code to login huggingface and apply ur approach. It worked for me. |
pour moi cela ne fonctionne pas sur Jupyter interpreter_login() notebook_login() |
svp aidez moi |
ni from huggingface_hub import interpreter_login interpreter_login() |
@michaelndam2023 Have you tested solutions presented in #752 (comment)? Also when you say "pour moi cela ne fonctionne pas sur Jupyter", can you be more explicit on the problem you are getting? Also, please do not send 3 comments in a row requesting for help - this doesn't improve response time on an open-source project. |
@Wauplin oui oui j'ai essayé mais en vain |
Re-generate a new token on https://huggingface.co/settings/tokens. |
Same Thing on a Mac here, both interpreter and notebook_login does not let paste, and login() runs forever in vscode |
Hey @pechaut78, sorry for the inconvenient. This bug in VScode is not fixed. What you can do is to use the workarounds described in #752 (comment) and #752 (comment). |
thank you very much! |
Hi, I am using jupyternotebook via VScode. But When I run
I copy the Token, but I cannot paste it in the jupyternotebook in VScode. How to solve it?
doesn't work either.
Thanks!
The text was updated successfully, but these errors were encountered: