Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

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

ymd_
機械学習やってます
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away