Windows Bash を使用しています。jupyter notebook
コマンドを実行しようとしていました。ブラウザが開きません。しかし、それは私に示しています:
[I 16:19:44.425 NotebookApp] Serving notebooks from local directory: /home/Dida
[I 16:19:44.425 NotebookApp] 0 active kernels
[I 16:19:44.427 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=056d3c3335bef80c2ae4a2e9c70bc8a62ea7c2bd0f1cc075
[I 16:19:44.431 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:19:44.433 NotebookApp] No web browser found: could not locate runnable browser.
[C 16:19:44.433 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=056d3c3335bef80c2ae4a2e9c70bc8a62ea7c2bd0f1cc075
まあ、コピー/貼り付けに問題はありませんhttp://localhost:8888/?token=...
。すべて順調。Jupyterで作業できます。しかし、私の夢では、jupyter がブラウザーを単独で開くことを望んでいます (毎回コピー/貼り付けする必要はありません)。
それで、私は jupyter notebook --browser=chrome
このパラメータ値で実行して遊んでみました。へのフルパスを入力しようとしましたchrome.exe
。しかし、私は不運です。
その後、私はがっかりして、に行き、python
Windows Bashが知っているブラウザを表示するために行った
>>> import webbrowser
>>> print(webbrowser._browsers)
{}
まあ、何も!その後。webbrowser
ライブラリで遊んでみました。register, open, get
-コマンド。私はいつもこれを得ています:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.5/webbrowser.py", line 51, in get
raise Error("could not locate runnable browser")
webbrowser.Error: could not locate runnable browser
しかし、私は無力だと感じています。ヘルプ!