Matplotlib inline

Could someone tell me how to make %matpltolib inline backend automatically loaded (Jupyter lab) when starting a new ipython kernel? Thanks in advance.

To achieve this, I have the following setting in ~/.ipython/profile_default/ipython_kernel_config.py:

c.IPKernelApp.matplotlib = 'inline'

Bonus tip: To increase the resolutions of plots, add this setting:

c.InlineBackend.figure_format = 'retina'
1 Like