There is currently a big special case for the Matplotlib library in ipykernel and IPython. IPython provides a %matplotlibmagic that allows choosing the current Matplotlib backend that is being used.
ノートブック上にグラフを描画する際に指定する記述 matplotlibを使う際は、初めにmatplotlibライブラリをインポートするが、 「% matplotlib inline」を書くと、ノートブック上にグラフを描画することができる。
Currently matplotlib inline sets a number of rc parameters. If you naively assume (as I did until recently) that it simply instructs the notebook to show plots inline, this can lead to bugs ...