LoginSignup
0
1

More than 5 years have passed since last update.

Macのターミナルからjupyter notebookを実行してもブラウザ(Chrome)が開かなくなった

Last updated at Posted at 2017-08-10

以下のようなメッセージが表示された

Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=XXXXXXXXXXXX
0:97: execution error: "http://localhost:8888/tree?token=XXXXXXXXXXXXXXX"は“open location”メッセージを認識できません。 (-1708)

ここに同様の現象に対する対策が書いてあったので、やってみたら動いた

c.NotebookApp.browser = u'open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome %s'

を書いて以下のパスに「jupyter_notebook_config.py」として保存
(なかったらフォルダごと作ってOK)

~/.jupyter/

他にもやり方ありそうだけど、たぶんこれが一番シンプル。
(ブラウザに合わせてパスは変更する必要あり)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1