2016-12-16 3 views
0

나는 다음과 같은 명령을 사용하여 Jupyter 노트북 서버와 신선한 파이썬 3 가상 환경을 구축하고 성공적으로Jupyter 노트북이 WebSocket 연결을 인증하지 못하는 이유는 무엇입니까?

virtualenv env -p python3 
. env/bin/activate 
pip install jupyter 
jupyter notebook 

이 모두 실행. 그러나 새 노트북을 만들려고 할 때 WebSocket 인증 오류가 발생하여 노트북을 만들 수 없습니다. 클라이언트가 말합니다

노트북 서버에 연결할 수 없습니다. 노트북은 다시 연결을 시도합니다. 네트워크 연결 또는 노트북 서버 구성을 확인하십시오. 여기

는 Jupyter 노트북 서버의 로그입니다 :

[I 22:50:23.085 NotebookApp] The port 8888 is already in use, trying another port. 
[I 22:50:23.110 NotebookApp] Serving notebooks from local directory: /tmp 
[I 22:50:23.110 NotebookApp] 0 active kernels 
[I 22:50:23.110 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/?token=b4d69926e308334a4ca121d3ceaa0dfa9f1ba93312770f88 
[I 22:50:23.110 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 
[I 22:50:36.778 NotebookApp] Accepting one-time-token-authenticated connection from 127.0.0.1 
[I 22:52:01.083 NotebookApp] Creating new notebook in 
[W 22:52:06.372 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161215225022 (127.0.0.1) 38.39ms referer=http://localhost:8889/notebooks/Untitled.ipynb?kernel_name=python3 
[I 22:52:06.855 NotebookApp] Kernel started: 7b5db30f-e2b2-48dc-9ec8-2aa9bd63b604 
[W 22:52:07.130 NotebookApp] Couldn't authenticate WebSocket connection 
[W 22:52:07.140 NotebookApp] 403 GET /api/kernels/7b5db30f-e2b2-48dc-9ec8-2aa9bd63b604/channels?session_id=277CA36E71FA431C922EE9F8AEFF6261 (127.0.0.1) 14.42ms referer=None 
[W 22:52:08.435 NotebookApp] Couldn't authenticate WebSocket connection 
[W 22:52:08.446 NotebookApp] 403 GET /api/kernels/7b5db30f-e2b2-48dc-9ec8-2aa9bd63b604/channels?session_id=277CA36E71FA431C922EE9F8AEFF6261 (127.0.0.1) 16.36ms referer=None 
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. 
[W 22:52:10.619 NotebookApp] Couldn't authenticate WebSocket connection 
[W 22:52:10.622 NotebookApp] 403 GET /api/kernels/7b5db30f-e2b2-48dc-9ec8-2aa9bd63b604/channels?session_id=277CA36E71FA431C922EE9F8AEFF6261 (127.0.0.1) 10.53ms referer=None 
[W 22:52:14.657 NotebookApp] Couldn't authenticate WebSocket connection 
[W 22:52:14.666 NotebookApp] 403 GET /api/kernels/7b5db30f-e2b2-48dc-9ec8-2aa9bd63b604/channels?session_id=277CA36E71FA431C922EE9F8AEFF6261 (127.0.0.1) 15.54ms referer=None 

이 오류가 무슨 뜻이며 어떻게 그것을 해결할 수 있습니까?

저는 Ubuntu 16.10, Python 3.5.2 및 Jupyter 4.2.1을 사용하고 있습니다.

답변

1

어제 정확히 똑같은 오류가 발생했고 그게 lastpass 크롬 플러그인 때문이었습니다. 자세한 내용은 other post을 참조하십시오.

+0

감사합니다. [Brave browser] (https://brave.com/)를 사용하고 있었지만 지금은 Firefox로 전환했습니다. – argentpepper

관련 문제