%matplotlib inlineを自動化
%matplotlib inlineを自動化する
Jupyter notebookでグラフの出力をインラインでするためには,以下のコマンドを入力します.
%matplotlib inline
これを入力しなくても,自動でインライン表示にするように設定します.
~/.ipython/profile_default/ipython_config.pyの設定を変更します.
もしこのファイルがない場合は,shellで以下のコマンドで作成します.
ipython profile create
~/.ipython/profile_default/ipython_config.pyに以下を追加します.
c.InteractiveShellApp.exec_lines = ['%matplotlib inline']