I've been using Anaconda for a year now and never had a problem. Now, neither Jupyter Lab and Notebook open from it, I have to use Terminal and it's awful. I reinstalled both Anaconda and Jupyter and nothing solved. I tried changing the direction of my workspace and it didn't work. It says that port 8888 is not available and changes to another port, but works through Terminal. Couldn't find anything around the web, not even here that solved my problem. I use Windows 10.
Related
I have been searching this problem since a while, but can't find a solution. I am working in Windows 10.
After I activate any virtual environment and I write "jupyter notebook", the terminal gets stucked and nothing happens, like in the picture:
No errors appear, I can't Ctrl+C to kill terminal and no browser page appears.
The "jupyter --help" command works, but any other subcommand (like jupyter lab, jupyter nbclassic or jupyter run) doesn't
I tried to do the following, with no results:
Uninstall and install jupyter again
I tried to lunch jupyter notebook with Anaconda Navigator
I tried to open a browser and go to "http://localhost:8889/tree", using different port values
I tried to restart my laptop
Does anyone have any idea what is going on?
Well,
If you've re-installed Anaconda with the default settings, it should set up PATH correctly. So I hope the error is not with PATH environment variable
Try the following:
If Jupyter gives an error that it can’t find notebook, check with pip or conda that the notebook package is installed.
Try running jupyter-notebook (with a hyphen). This should normally be the same as jupyter notebook (with a space), but if there’s any difference, the version with the hyphen is the ‘real’ launcher, and the other one wraps that.
It turned out that jupyter notebook was not starting because I could not ping my localhost (127.0.0.1) because of some bad network settings.
After running netsh winsock reset in a cmd terminal to reset the network settings, I could ping the localhost and jupyter notebook started to work again.
Windows 11. I have an Anaconda installation of Python and use both Jupyter Notebook and Spyder occasionally. Everything was fine last week. Now suddenly, I have something similar happening to what's being described here: Jupyter Notebook - Cannot Connect to Kernel
But Spyder is also immediately crashing after opening. I tried conda update jupyter and conda update notebook, a substantial number of packages updated, but same problem. I also tried to revert tornado to 5.1.1 but that was incompatible with the current version of Python I have, 3.10.8.
I tried to search for some ill-named or placed Python scripts, but there really shouldn't be any, they're all in folders in the host Jupyter Notebook directory. And I don't really understand Python environments or want to keep track of them so I'd rather not attempt that (one of the answers of the previous post).
enter image description here
I work with Jupyter Notebook through Anaconda on Windows 10, and I've never had any problems. However recently Anaconda Navigator 2020.5 started not opening and disappeared from my apps list. I tried uninstalling and reinstalling, I followed all the steps and the installation went perfectly and Anaconda Navigator opened again, but Jupyter Notebook doesn't open the browser. I updated Anaconda, restarted the app and then Anaconda Navigator stopped working again. I tried one more reinstall and the problem was repeated, and now I can't access Jupyter Notebook anymore and I'm afraid of losing all my codes. I have no idea what's going wrong, can someone help me for God's sake. I also got two versions of Python installed, which is Python 3.8 and 3.9
I tried to use the Jupyter Notebook application as usual but, I could not connect to the Kernel ( python(base) ) when I launched the the jupyter notebook from my CMD line,the notebook launched fine but it was impossible to execute any code since it couldn’t connect to the kernel.
But when I launch the jupyter notebook from the anaconda navigator, it works well and connects to the kernel.
I have looked at documentation and all the threads that I could find but nothing solved my solution of connecting with the kernel. I tried downgrading tornado, re-installing everything but it did not work. I would be very grateful if someone could tell me what i am doing wrong.
The below screenshot shows, the jupyter notebook launched from anaconda navigator and the kernel was connected:
The below screenshots show the jupyter notebook was launched from the cmd, and the connection to the kernel was not established:
try writing conda if it shows you an error then you should check whether conda path variable is added or you will need to run this jupyter notebook in anaconda prompt.
I had a well set-up Windows machine with jupter installed and it was running fine. A week later,
> jupyter notebook
[I 12:18:13.640 NotebookApp] [nb_conda_kernels] enabled, 5 kernels found
And then nothing happens, Ctrl+z also doesn't work. My notebooks aren't running as the server is just not working.
Any way I can resolve the issue? I have a presentation with those notebooks!
Thanks.
First, it seems there is an existed jupyter server with unstable status. So if you are not sure what happened. Just try to reboot your computer.
Second, you can create a pure environment by conda create -n name python=x.x. Just remove anaconda. And then use pip install jupyter to install jupyter.