# Python3 in JupyterLab: How to change font-size of the output from Python?

**URL:** <https://discourse.jupyter.org/t/python3-in-jupyterlab-how-to-change-font-size-of-the-output-from-python/5007>\
**Category:** JupyterLab\
**Created:** [June 29, 2020, 2:37pm UTC](https://discourse.jupyter.org/t/python3-in-jupyterlab-how-to-change-font-size-of-the-output-from-python/5007 "2020-06-29T14:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JupyterLabUser](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@JupyterLabUser](https://discourse.jupyter.org/u/JupyterLabUser)\
**Post date:** [June 29, 2020, 2:37pm UTC](https://discourse.jupyter.org/t/python3-in-jupyterlab-how-to-change-font-size-of-the-output-from-python/5007/1 "2020-06-29T14:37:59Z")

</div>

JupyterLab -\> Settings -\> Advanced Settings Editor

shows me System Defaults and allows me to edit User Preferences. If there’s documentation as to how exactly to edit User Preferences for a desired outcome, where are the docs, please?

I’ve managed to add a keyboard shortcut, through a process of trial and error. Similarly I’ve managed to to change the font-size in cells containing my Python source code. But I’ve been unable to figure out how to change the font-size in cells containing textual output from Python. If the process is documented, where, please? Otherwise, how can I change the font-size in cells containing textual output from Python?

Thank you.

---

<div class="post-metadata">

**Author:** ![blois](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/blois/32/235_2.png) [@blois](https://discourse.jupyter.org/u/blois)\
**Post date:** [June 29, 2020, 9:21pm UTC](https://discourse.jupyter.org/t/python3-in-jupyterlab-how-to-change-font-size-of-the-output-from-python/5007/2 "2020-06-29T21:21:06Z")

</div>

It’s not an pretty solution, but if you’re running a trusted notebook then you can style the page from python:

```python
from IPython.display import HTML
display(HTML('''<style>[data-mime-type="application/vnd.jupyter.stdout"] pre { font-size:20px}</style>'''))

```

---

<div class="post-metadata">

**Author:** ![JupyterLabUser](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@JupyterLabUser](https://discourse.jupyter.org/u/JupyterLabUser)\
**Post date:** [June 29, 2020, 9:24pm UTC](https://discourse.jupyter.org/t/python3-in-jupyterlab-how-to-change-font-size-of-the-output-from-python/5007/3 "2020-06-29T21:24:42Z")

</div>

Not as pretty as what I was contemplating, but more versatile and something I’ll certainly use beyond the scope of my original intent here. Thanks very much.
