jupyter / jupyter/notebook

[jupyter notebook launch error!] I got select.error: (10038, '')

Open
#3,548 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

![jupyter_error](https://user-images.githubusercontent.com/17548194/39031614-e48d6612-449b-11e8-80a2-e75eb6bb0bbc.png)
(CS682) C:\Users\cucum>jupyter notebook
[I 12:06:57.032 NotebookApp] Serving notebooks from local directory: C:\Users\cucum
[I 12:06:57.032 NotebookApp] 0 active kernels
[I 12:06:57.032 NotebookApp] The Jupyter Notebook is running at:
[I 12:06:57.032 NotebookApp] http://localhost:8888/?token=cee6e2ea13dbbf22bf8eedc155135b1ee06969bf8a0c3218
[I 12:06:57.032 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:06:57.032 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=cee6e2ea13dbbf22bf8eedc155135b1ee06969bf8a0c3218
[I 12:06:57.766 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[I 12:06:58.631 NotebookApp] Shutting down 0 kernels
Traceback (most recent call last):
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\Scripts\jupyter-notebook-script.py", line 10, in
sys.exit(main())
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\lib\site-packages\notebook\notebookapp.py", line 1636, in start
self.io_loop.start()
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\lib\site-packages\tornado\ioloop.py", line 863, in start
event_pairs = self._impl.poll(poll_timeout)
File "C:\Users\cucum\AppData\Local\conda\conda\envs\CS682\lib\site-packages\tornado\platform\select.py", line 63, in poll
self.read_fds, self.write_fds, self.error_fds, timeout)
select.error: (10038, '')

When I tried to launch jupyter notebook in terminal, it usually comes this error. Then I will get ERR_CONNECTION_REFUSED by my chrome browser(get a blank page). But not always, if I continuously type this command, there is about 20 percent chance of successfully launching.
I am using windows 10 and anaconda3. I create the environment CS682 in python2.7.
I have tried to change the tornado package version into 5.0.1, 5.0.0 and 4.5.1. still not work.

Thank you for your time!

Contributor guide

Open the contributing guide

Research direction

Reproduce the launch failure on Windows 10 with Anaconda, the CS682 Python 2.7 environment, and the `jupyter notebook` command. Start with the traceback through `notebook/notebookapp.py`, `tornado/ioloop.py`, and `tornado/platform/select.py`; done means the server remains running and the browser connects consistently without `select.error: (10038, '')`.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, jupyter-notebook, python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.