我已经通过miniconda3安装了jupyterlab,当我启动jupyter实验室时,我得到一个空浏览器,我在Windows 7上用python 3.6运行它 实际上我没有注意到日志文件中有任何错误,我不知道它是否与浏览器有关。我确切地说我在IE中运行jupyterlab 这里的日志:
(C:\Users\G30622\Desktop\miniconda3\miniconda3) C:\Users\G30622\Desktop>jupyter
lab --debug > log.txt
[D 11:22:19.787 LabApp] Searching ['C:\\Users\\G30622\\Desktop', 'C:\\Users\\G30622\\.jupyter', 'c:\\users\\g30622\\desktop\\miniconda3\\miniconda3\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 11:22:19.787 LabApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 11:22:19.787 LabApp] Looking for jupyter_config in c:\users\g30622\desktop\miniconda3\miniconda3\etc\jupyter
[D 11:22:19.787 LabApp] Looking for jupyter_config in C:\Users\G30622\.jupyter
[D 11:22:19.787 LabApp] Looking for jupyter_config in C:\Users\G30622\Desktop
[D 11:22:19.797 LabApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 11:22:19.797 LabApp] Looking for jupyter_notebook_config in c:\users\g30622\desktop\miniconda3\miniconda3\etc\jupyter
[D 11:22:19.797 LabApp] Loaded config file: c:\users\g30622\desktop\miniconda3\miniconda3\etc\jupyter\jupyter_notebook_config.json
[D 11:22:19.797 LabApp] Looking for jupyter_notebook_config in C:\Users\G30622\.jupyter
[D 11:22:19.797 LabApp] Loaded config file: C:\Users\G30622\.jupyter\jupyter_notebook_config.py
[D 11:22:19.797 LabApp] Looking for jupyter_notebook_config in C:\Users\G30622\Desktop
[D 11:22:20.337 LabApp] Terminals not available (error was No module named 'fcntl')
[I 11:22:20.337 LabApp] JupyterLab alpha preview extension loaded from c:\users\g30622\desktop\miniconda3\miniconda3\lib\site-packages\jupyterlab
[I 11:22:20.437 LabApp] Serving notebooks from local directory: C:\Users\G30622\Desktop
[I 11:22:20.437 LabApp] 0 active kernels
[I 11:22:20.437 LabApp] The Jupyter Notebook is running at:
[I 11:22:20.437 LabApp] http://localhost:8888/?token=7c270403de19cbae77707b25adf469d7a5ac03278e6b2adb
[I 11:22:20.437 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:22:20.447 LabApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=7c270403de19cbae77707b25adf469d7a5ac03278e6b2adb
[D 11:22:20.457 LabApp] 200 GET /api/sessions?1510136539361 (::1) 10.00ms
[D 11:22:20.457 LabApp] 200 GET /api/sessions?1510136538893 (::1) 0.00ms
[D 11:22:20.457 LabApp] 200 GET /api/sessions?1510136539458 (::1) 0.00ms
[D 11:22:20.467 LabApp] 200 GET /api/sessions?1510136539663 (::1) 10.00ms
[D 11:22:20.597 LabApp] 200 GET /api/sessions?1510136538569 (::1) 0.00ms
[I 11:22:20.597 LabApp] Accepting one-time-token-authenticated connection from ::1
[D 11:22:20.607 LabApp] Using contents: services/contents
[D 11:22:20.627 LabApp] 200 GET /lab?token=2d4ed1377f35a30a252eb3794f4e3b440f1fa2c1d08a703f (::1) 30.00ms
[D 11:22:20.657 LabApp] Path main.bundle.js served from c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\lab\static\main.bundle.js
[D 11:22:20.657 LabApp] 304 GET /lab/static/main.bundle.js (::1) 10.00ms
[D 11:22:20.657 LabApp] Path components\MathJax\MathJax.js served from c:\users\g30622\desktop\miniconda3\miniconda3\lib\site-packages\notebook\static\components\MathJax\MathJax.js
[D 11:22:20.657 LabApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (::1) 0.00ms
[D 11:22:20.947 LabApp] Path components\MathJax\config\TeX-AMS-MML_HTMLorMML-full.js served from c:\users\g30622\desktop\miniconda3\miniconda3\lib\site-packages\notebook\static\components\MathJax\config\TeX-AMS-MML_HTMLorMML-full.js
[D 11:22:20.957 LabApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?rev=2.6.0 (::1) 10.00ms
[D 11:22:20.977 LabApp] Path components\MathJax\config\Safe.js served from c:\users\g30622\desktop\miniconda3\miniconda3\lib\site-packages\notebook\static\components\MathJax\config\Safe.js
[D 11:22:20.979 LabApp] 304 GET /static/components/MathJax/config/Safe.js?rev=2.6.0 (::1) 2.50ms
[D 11:22:21.227 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.227 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.227 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.257 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:21.257 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.259 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.259 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:21.262 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.262 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.262 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:21.264 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.264 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:21.264 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:21.269 LabApp] 200 GET /api/kernelspecs?1510136541222 (::1) 42.50ms
[D 11:22:21.272 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.274 LabApp] 200 GET /lab/api/settings/@jupyterlab/apputils-extension:themes?1510136541262 (::1) 2.50ms
[D 11:22:21.274 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.279 LabApp] 200 GET /lab/api/settings/@jupyterlab/shortcuts-extension:plugin?1510136541255 (::1) 5.00ms
[D 11:22:21.299 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.302 LabApp] 200 GET /lab/api/settings/@jupyterlab/fileeditor-extension:plugin?1510136541284 (::1) 2.50ms
[D 11:22:21.304 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.307 LabApp] 200 GET /lab/api/build?1510136541280 (::1) 2.50ms
[D 11:22:21.309 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.312 LabApp] 200 GET /lab/api/settings/@jupyterlab/codemirror-extension:commands?1510136541293 (::1) 2.50ms
[D 11:22:21.519 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:21.519 LabApp] 200 GET /api/sessions?1510136541508 (::1) 0.00ms
[D 11:22:21.572 LabApp] Path @jupyterlab\theme-light-extension\index.css servedfrom c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\lab\themes\@jupyterlab\theme-light-extension\index.css
[D 11:22:21.572 LabApp] 304 GET /lab/api/themes/@jupyterlab/theme-light-extension/index.css (::1) 10.00ms
[D 11:22:21.622 LabApp] Path @jupyterlab\theme-light-extension\variables.css served from c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\lab\themes\@jupyterlab\theme-light-extension\variables.css
[D 11:22:21.632 LabApp] 304 GET /lab/api/themes/@jupyterlab/theme-light-extension/variables.css (::1) 10.00ms
[D 11:22:21.632 LabApp] Path @jupyterlab\theme-light-extension\urls.css served from c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\lab\themes\@jupyterlab\theme-light-extension\urls.css
[D 11:22:21.632 LabApp] 304 GET /lab/api/themes/@jupyterlab/theme-light-extension/urls.css (::1) 0.00ms
[D 11:22:23.232 LabApp] 200 GET /api/sessions?1510136543205 (127.0.0.1) 10.00ms
[D 11:22:23.412 LabApp] 200 GET /api/sessions?1510136543398 (127.0.0.1) 0.00ms
[D 11:22:33.862 LabApp] 200 GET /api/sessions?1510136549452 (127.0.0.1) 0.00ms
[D 11:22:33.862 LabApp] 200 GET /api/sessions?1510136549668 (127.0.0.1) 0.00ms
[D 11:22:33.872 LabApp] 200 GET /api/sessions?1510136548574 (::1) 0.00ms
[D 11:22:33.882 LabApp] 200 GET /api/sessions?1510136548899 (127.0.0.1) 10.00ms
[D 11:22:33.882 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:33.882 LabApp] 200 GET /api/sessions?1510136551246 (::1) 0.00ms
[D 11:22:33.882 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.882 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.882 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.882 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.892 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.902 LabApp] 200 GET /api/kernelspecs?1510136546205 (::1) 20.00ms
[D 11:22:33.902 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.902 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.902 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.902 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.902 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.902 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:33.912 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:33.912 LabApp] 200 GET /api/kernelspecs?1510136545355 (::1) 10.00ms
[D 11:22:33.912 LabApp] 200 GET /api/sessions?1510136553204 (127.0.0.1) 0.00ms
[D 11:22:33.922 LabApp] 200 GET /api/sessions?1510136553396 (127.0.0.1) 10.00ms
[D 11:22:33.922 LabApp] 200 GET /api/sessions?1510136549346 (127.0.0.1) 0.00ms
[D 11:22:38.602 LabApp] 200 GET /api/sessions?1510136558574 (::1) 10.00ms
[D 11:22:38.922 LabApp] 200 GET /api/sessions?1510136558912 (::1) 10.00ms
[D 11:22:39.362 LabApp] 200 GET /api/sessions?1510136559355 (127.0.0.1) 0.00ms
[D 11:22:39.472 LabApp] 200 GET /api/sessions?1510136559462 (::1) 0.00ms
[D 11:22:39.692 LabApp] 200 GET /api/sessions?1510136559677 (127.0.0.1) 0.00ms
[D 11:22:41.262 LabApp] Accepting token-authenticated connection from ::1
[D 11:22:41.272 LabApp] 200 GET /api/sessions?1510136561245 (::1) 10.00ms
[D 11:22:43.222 LabApp] 200 GET /api/sessions?1510136563205 (127.0.0.1) 0.00ms
[D 11:22:43.402 LabApp] 200 GET /api/sessions?1510136563395 (::1) 0.00ms
[D 11:22:44.702 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.702 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.702 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:44.702 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.702 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.702 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:44.712 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.712 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.712 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:44.712 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.722 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:44.722 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:44.722 LabApp] 200 GET /api/kernelspecs?1510136564678 (127.0.0.1) 30.00ms
[D 11:22:48.602 LabApp] 200 GET /api/sessions?1510136568573 (::1) 10.00ms
[D 11:22:48.922 LabApp] 200 GET /api/sessions?1510136568912 (::1) 10.00ms
[D 11:22:49.362 LabApp] 200 GET /api/sessions?1510136569354 (127.0.0.1) 0.00ms
[D 11:22:49.492 LabApp] 200 GET /api/sessions?1510136569472 (127.0.0.1) 10.00ms
[D 11:22:49.692 LabApp] 200 GET /api/sessions?1510136569668 (::1) 10.00ms
[D 11:22:50.492 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.492 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.492 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:50.492 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.492 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.492 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:50.502 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.502 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.502 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:50.512 LabApp] Found kernel ir in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.512 LabApp] Found kernel python2 in c:\users\g30622\desktop\miniconda3\miniconda3\share\jupyter\kernels
[D 11:22:50.512 LabApp] Found kernel python3 in C:\ProgramData\jupyter\kernels
[D 11:22:50.512 LabApp] 200 GET /api/kernelspecs?1510136570472 (127.0.0.1) 30.00ms
答案 0 :(得分:1)
对我来说,这是通过更改用于打开Jupyterlab的浏览器来解决的。当我使用Internet Explorer(不幸的是我的笔记本电脑的默认设置)时,jupyterlab会打开一个空的浏览器选项卡。在Chrome中打开可以让它完美运行。您可以首先运行
强制它在Chrome中打开jupyter lab --generate-config
然后打开生成的配置文件(generate-config命令将给出该文件的路径)。将以下行添加到配置文件中:
c.LabApp.browser = r'"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" --app=%s'
您不需要包含--app=%s
,但如果您这样做,则会在自己的窗口中打开jupyter lab,而不会显示网址和额外按钮。
答案 1 :(得分:1)
添加为我解决此问题的方法,因为我在其他任何地方都找不到 -
就我而言,该问题与任何浏览器问题无关(我尝试使用隐身模式和 FF 并得到相同的结果)。
不确定问题是什么,但解决方法是从 conda 卸载 jupyterlab:
conda uninstall jupyterlab
然后使用pip安装它:
pip install jupyterlab
之后可能需要进行此 PATH 调整:
export PATH="$HOME/.local/bin:$PATH"