[IPython-dev] Sans-serif fonts in LaTeX labels for Jupyter widgets?
Johann Rohwer
jr at sun.ac.za
Tue Feb 14 09:00:48 EST 2017
The documentation on layout and styling of Jupyter widgets mentions that
Label widget can also render LaTeX equations:
http://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Styling.html#Latex
On my machine, these equations render in a serif font by default. Is it
possible to change the default font set to use sans-serif fonts, similar to
matplotlib's?
matplotlib.rcPararams['mathtext.fontset'] = 'stixsans'
Cheers,
Johann
More information about the IPython-dev
mailing list