以下のファイルを編集する
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