36
41

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows環境でのJupyter Notebookのブラウザ指定

Last updated at Posted at 2016-12-27

業務システムが特定のブラウザにベタベタに依存しているため、デフォルトブラウザを好き勝手に設定できない人達へ。

> jupyter notebook --generate-config

で生成された ~/.jupyter/jupyter_application_config.py を編集。

  • Chromeを使う場合
import webbrowser
webbrowser.register('chrome', None, webbrowser.GenericBrowser('C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe'))
c.NotebookApp.browser = 'chrome'
  • Firefoxを使う場合
import webbrowser
webbrowser.register('firefox', None, webbrowser.GenericBrowser('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe'))
c.NotebookApp.browser = 'firefox'

※「Program Files (x86)」の部分は使用環境に合わせて変える必要があります

36
41
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
36
41

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?