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.
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.
I'm using Windows OS. I've just installed anaconda and i can see the notebook space. when i click on the jupyter notebook, nothing happens. There is a cmd running in the task manager but nothing else. I've tried a couple of methods out here but nothing makes a difference. My default browser is Chrome too.
There will be a link starting with http://localhost/ in the terminal that you used to launch jupyter lab. Just copy that from the terminal and paste it in the browser.
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.
I recently installed the Anaconda Navigator (Anaconda 2) on a Windows 8.1 machine.
If I launch Jupyter Notebook from the Anaconda window, I am met with a 'Page cannot be displayed' error in my browser (Chrome).
I have tried launching Jupyter Notebook from the Anaconda Prompt (no notable error message output). I have also tried opening the Notebook in a different browser (Firefox), and I have tried running the Prompt in Administrator mode. No luck.
I have Jupyter Notebook version 5.6.0 according to the Navigator, but if I type jupyter --version at the prompt it says 4.4.0 (wondering if this is a problem?)
I kind of expected to be able to launch a Notebook right off the bat after installing Anaconda. Is there some set-up I have missed?
(Edit) Tried a few more things, after reading the Jupyter Notebook docs. Tried replacing 'localhost' in the URL with 127.0.0.1, and tried opening the link Chrome with --disable-web-security. Didn't help.
Steps which i will advice:
1) Open your command prompt in the directory which contains your notebook or where you want to create new notebook.
2) Write jupyter notebook in cmd and press enter.
If jupyter notebook is properly installed then it will certainly open, else try reinstalling it.
Note: You can always update your jupyter notebook via conda or pip. At time if you update or install package/IDE via pip, Anaconda terms it as "broken link" and give issue.
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.