Notebook_login() not working in JupyterLab

When I use notebook_login() in Google Colab, I am able to login fine. However, when I try to run notebook_login() from JupyterLab, it immediately completes computation and moves to the next code chunk, without waiting for me to input my token. When I do attempt to go back to that cell and input my token, nothing happens.

See below how it immediately skips to the next code chunk in JupyterLab:
JupyterLab

Is there any reason why notebook_login() isn’t working in JupyterLab?

Thanks!

Hi @jburns , sorry you are facing this issue. We already had a similar issue in the past about the login widget not working in some environments. Is it possible for you to try either this fix or this fix ?

Thank you very much. The first fix worked for me!

1 Like

I created more than 5 anaconda environments.
Some of them corrupts causes the “jupyter nottebook” work and “jupyter lab” does not work.
I removed all the conda environments and reinstall just one anaconda envionment. Now, both “jupyter notebook” and “jupyter lab” work well with “notebook_login()”, colab also work well.