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

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.

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

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

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.