LoginSignup
2
0

More than 5 years have passed since last update.

jupyter notebookのdefault設定で%matplotlib inlineを省略とline numberを表示 on Mac

Last updated at Posted at 2018-03-17

以下のファイルを編集する

osによって設定は異なるのでmacの人以外は参考にならない

line numberをdefaultで表示

以下を作成

~/.jupyter/custom/custom.js
IPython.Cell.options_default.cm_config.lineNumbers = true;

%matplotlib inlineを省略する設定

以下を実行

ipython profile create

以下のように編集

~/.ipython/profile_default/ipython_config.py
# lines of code to run at IPython startup.
# c.InteractiveShellApp.exec_lines = traitlets.Undefined
c.InteractiveShellApp.exec_lines = ['%matplotlib inline']

参考
- https://qiita.com/noguchi0123/items/2c83e30e274e5a51cb41

2
0
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
2
0