# Matplotlib inline

**URL:** <https://discourse.jupyter.org/t/matplotlib-inline/10443>\
**Category:** JupyterLab\
**Created:** [August 21, 2021, 9:08am UTC](https://discourse.jupyter.org/t/matplotlib-inline/10443 "2021-08-21T09:08:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ma\_Teng](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/ma_teng/32/5035_2.png) [@Ma\_Teng](https://discourse.jupyter.org/u/Ma_Teng)\
**Post date:** [August 21, 2021, 9:08am UTC](https://discourse.jupyter.org/t/matplotlib-inline/10443/1 "2021-08-21T09:08:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![scbarton](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/scbarton/32/137_2.png) [@scbarton](https://discourse.jupyter.org/u/scbarton)\
**Post date:** [August 27, 2021, 11:54am UTC](https://discourse.jupyter.org/t/matplotlib-inline/10443/2 "2021-08-27T11:54:01Z")

</div>

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

```auto
c.IPKernelApp.matplotlib = 'inline'

```

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

```auto
c.InlineBackend.figure_format = 'retina'

```
