Closed
Description
Hello,
First of all, thank you so much for all your hard work. Jupyter is just great!
However, I'm pulling out whatever hair I have left trying to make it work (the notebook part) on Windows. I've followed the instructions from http://jupyter.org/ to the letter, read the forums, did my best to make it work, but no luck.
My details are like:
- Windows 7 Professional, 64 bit machine
- tried Anaconda 64 bit or 32 bit, Python 2.7 or Python 3.5 (all possible combos)
- all the other things (Ipython or the Jupyter QTConcole) work like a charm
- every time I try a "jupyter notebook --debug" in the cmd window, I get errors. The notebook seems to work, but there is a broken link below the Python logo which reads " No Connection to Kernel". The errors (from the cmd window, in chronological order) are:
-
- Terminals not available (error was No module named terminado) - that's easily solvable, I do a "conda install pip" and then a "pip install terminado"
-
- Terminals not available (error was No module named fcntl) - that's less easily solvable, but manageable - I do what's suggested at http://stackoverflow.com/questions/1422368/fcntl-substitute-on-windows
-
- Terminals not available (error was No module named termios) - that's where I hit the wall.
Thank you so much!
Activity
Carreau commentedon Dec 21, 2015
Terminals are not supported (yet?) on Windows, you should not get error messages on windows, just information messages.
That being said, the rest of notebook should work correctly without terminals,
so can you post the error log you get ?
"No Connection to Kernel" seem like an different issue, like your network/antivirus/firewall blocking websocket connexion.
Usually try offline will all protection disabled to see if it's that.
Iki-San commentedon Dec 22, 2015
Good sir,
First off, thank you so much. Also, you're right. When I tried running it offline, with my Ad-Aware Antivirus turned off, everything worked. So it could just be the antivirus. Any words of advice highly appreciated.
Please see below for what I get when running "jupyter notebook --debug" with the antivirus turned on (and when the connection to the kernel is not working):
Carreau commentedon Dec 22, 2015
You will just have to configure your antivirus not to block the websocket connexion. Unfortunately, my experience on that is limitted, as i havent touched an antivirus in many years.
The
--debug
log shows nothing anormal, as the antivirus is likely intercepting things as a too low level for Jupyter to ever notice.You can try to ask on the google group mailing list, potentially other users with the same antivirus will be able to tell you how to configure it.
I'm closing the issue, but feel free to continue writing.
ticolensic commentedon Aug 12, 2016
I, having encountered it, confirm this issue being of the antiviral nature, Kaspersky specifically.
davegrice-gas commentedon Dec 16, 2016
Confirming the above. Kaspersky Endpoint Security had port 8888 among the list of "Monitored Ports". Simply unchecking it from the list immediately resolved this symptom for me.
Fjedor commentedon Mar 30, 2017
The workaround, though i would not prefer it, is to jupyter notebook twice. Then close the first launch altogether. That way you would be working on a different port which is fine with Kaspersky it seems.
I am forced to go that way, bcz i do not have the needed admin rights to change Kasper monitoring settings. Hope that helps.
semartin3 commentedon May 23, 2017
thanks @Fjedor !
takluyver commentedon May 23, 2017
If you want to run the notebook on a different port, you can do it like this:
Or you can configure it to start on a different port without needing to enter it every time:
That should be easier than starting it twice and killing the first one. :-)
Fjedor commentedon May 23, 2017
That's what I was looking for. Thanks
dreme commentedon Dec 11, 2017
I had the same problem with my Anaconda Jupyter Notebook being blocked by my anti-virus software, which in my case was BitDefender Internet Security 2018
In my case I managed to get around it by disabling the “Block port scans in the network” feature, i.e.:
vkrmad commentedon Mar 17, 2019
@Carreau ,
sir i have the same problem but with different errors on the command line,
here is what appears on my anaconda prompt after i write
jupyter notebook --debug
(base) C:\Users\Vivek Prem Pandey>jupyter notebook --debug
[D 05:02:58.526 NotebookApp] Searching [u'C:\Users\Vivek Prem Pandey', 'C:\Users\Vivek Prem Pandey\.jupyter', 'C:\ProgramData\Anaconda2\etc\jupyter', 'C:\ProgramData\jupyter'] for config files
[D 05:02:58.526 NotebookApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 05:02:58.532 NotebookApp] Looking for jupyter_config in C:\ProgramData\Anaconda2\etc\jupyter
[D 05:02:58.532 NotebookApp] Looking for jupyter_config in C:\Users\Vivek Prem Pandey.jupyter
[D 05:02:58.532 NotebookApp] Looking for jupyter_config in C:\Users\Vivek Prem Pandey
[D 05:02:58.532 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 05:02:58.532 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\Anaconda2\etc\jupyter
[D 05:02:58.532 NotebookApp] Loaded config file: C:\ProgramData\Anaconda2\etc\jupyter\jupyter_notebook_config.json
[D 05:02:58.532 NotebookApp] Looking for jupyter_notebook_config in C:\Users\Vivek Prem Pandey.jupyter
[E 05:02:58.532 NotebookApp] Exception while loading config file C:\Users\Vivek Prem Pandey.jupyter\jupyter_notebook_config.py
Traceback (most recent call last):
File "C:\ProgramData\Anaconda2\lib\site-packages\traitlets\config\application.py", line 562, in _load_config_files
config = loader.load_config()
File "C:\ProgramData\Anaconda2\lib\site-packages\traitlets\config\loader.py", line 457, in load_config
self._read_file_as_dict()
File "C:\ProgramData\Anaconda2\lib\site-packages\traitlets\config\loader.py", line 489, in _read_file_as_dict
py3compat.execfile(conf_filename, namespace)
File "C:\ProgramData\Anaconda2\lib\site-packages\ipython_genutils\py3compat.py", line 280, in execfile
exec(compiler(scripttext, filename, 'exec'), glob, loc)
File "C:\Users\Vivek Prem Pandey.jupyter\jupyter_notebook_config.py", line 101
c.NotebookApp.browser = 'chrome''
^
SyntaxError: EOL while scanning string literal
[D 05:02:58.542 NotebookApp] Looking for jupyter_notebook_config in C:\Users\Vivek Prem Pandey
[D 05:03:10.757 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\ProgramData\jupyter\jupyter_notebook_config.json
[D 05:03:10.759 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\ProgramData\Anaconda2\etc\jupyter\jupyter_notebook_config.d\jupyterlab.json
C:\ProgramData\Anaconda2\etc\jupyter\jupyter_notebook_config.json
[D 05:03:10.769 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\Users\Vivek Prem Pandey.jupyter\jupyter_notebook_config.json
[I 05:03:11.924 NotebookApp] JupyterLab extension loaded from C:\ProgramData\Anaconda2\lib\site-packages\jupyterlab
[I 05:03:11.924 NotebookApp] JupyterLab application directory is C:\ProgramData\Anaconda2\share\jupyter\lab
[I 05:03:12.201 NotebookApp] Serving notebooks from local directory: C:\Users\Vivek Prem Pandey
[I 05:03:12.203 NotebookApp] The Jupyter Notebook is running at:
[I 05:03:12.203 NotebookApp] http://localhost:8888/?token=174bdaf597a1aedfb28cfa5be733f721752696bb00a674a0
[I 05:03:12.203 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 05:03:12.242 NotebookApp]
[D 05:03:15.079 NotebookApp] Accepting token-authenticated connection from ::1
[D 05:03:15.088 NotebookApp] Using contents: services/contents
[D 05:03:15.608 NotebookApp] Path base/images/favicon.ico served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\base\images\favicon.ico
[D 05:03:15.638 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\jquery-ui\themes\smoothness\jquery-ui.min.css
[D 05:03:15.654 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\jquery-typeahead\dist\jquery.typeahead.min.css
[D 05:03:15.688 NotebookApp] Path style/style.min.css served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\style\style.min.css
[D 05:03:15.706 NotebookApp] Path components/es6-promise/promise.min.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\es6-promise\promise.min.js
[D 05:03:15.880 NotebookApp] Path components/preact/index.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\preact\index.js
[D 05:03:15.931 NotebookApp] Path components/proptypes/index.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\proptypes\index.js
[D 05:03:15.970 NotebookApp] Path components/preact-compat/index.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\preact-compat\index.js
[D 05:03:16.046 NotebookApp] Path components/requirejs/require.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\components\requirejs\require.js
[D 05:03:16.118 NotebookApp] Path base/images/logo.png served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\base\images\logo.png
[D 05:03:16.121 NotebookApp] Path tree/js/main.min.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\tree\js\main.min.js
[D 05:03:16.558 NotebookApp] 200 GET /tree?token=174bdaf597a1aedfb28cfa5be733f721752696bb00a674a0 (::1) 1479.00ms
[D 05:03:16.572 NotebookApp] 200 GET /api/sessions?=1552865229501 (::1) 7.00ms
[D 05:03:16.585 NotebookApp] 200 GET /api/terminals?=1552865229502 (::1) 6.00ms
[D 05:03:16.823 NotebookApp] 200 GET /api/contents?type=directory&=1552865229503 (::1) 51.00ms
[D 05:03:16.828 NotebookApp] Path custom.css served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\custom\custom.css
[D 05:03:16.838 NotebookApp] 304 GET /custom/custom.css (::1) 11.00ms
[D 05:03:17.655 NotebookApp] Path services\contents.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\services\contents.js
[D 05:03:17.688 NotebookApp] 200 GET /static/services/contents.js?v=20190318050258 (::1) 34.00ms
[D 05:03:17.813 NotebookApp] Paths used for configuration of tree:
C:\ProgramData\jupyter\nbconfig\tree.json
[D 05:03:17.822 NotebookApp] Paths used for configuration of tree:
C:\ProgramData\Anaconda2\etc\jupyter\nbconfig\tree.json
[D 05:03:17.828 NotebookApp] Paths used for configuration of tree:
C:\Users\Vivek Prem Pandey.jupyter\nbconfig\tree.json
[D 05:03:17.859 NotebookApp] 200 GET /api/config/tree?=1552865597199 (::1) 51.00ms
[D 05:03:17.884 NotebookApp] Found kernel python2 in C:\ProgramData\Anaconda2\share\jupyter\kernels
[D 05:03:18.197 NotebookApp] 304 GET /api/kernelspecs (::1) 320.00ms
[D 05:03:18.209 NotebookApp] 200 GET /api/terminals?=1552865597203 (::1) 2.00ms
[D 05:03:18.224 NotebookApp] 200 GET /api/sessions?=1552865597202 (::1) 2.00ms
[D 05:03:18.236 NotebookApp] Path custom.js served from C:\ProgramData\Anaconda2\lib\site-packages\notebook\static\custom\custom.js
[D 05:03:18.272 NotebookApp] 200 GET /custom/custom.js?v=20190318050258 (::1) 39.00ms
[D 05:03:18.280 NotebookApp] 200 GET /api/terminals?=1552865597201 (::1) 3.00ms
[D 05:03:18.289 NotebookApp] Paths used for configuration of common:
C:\ProgramData\jupyter\nbconfig\common.json
[D 05:03:18.293 NotebookApp] Paths used for configuration of common:
C:\ProgramData\Anaconda2\etc\jupyter\nbconfig\common.json
[D 05:03:18.298 NotebookApp] Paths used for configuration of common:
C:\Users\Vivek Prem Pandey.jupyter\nbconfig\common.json
[D 05:03:18.303 NotebookApp] 200 GET /api/config/common?=1552865597200 (::1) 17.00ms
[D 05:03:18.364 NotebookApp] 200 GET /api/contents?type=directory&_=1552865597204 (::1) 56.00ms
really need your help ,thank you .