Sans-serif fonts in LaTeX labels for Jupyter widgets?
Johann Rohwer <[email protected]> Tue, 14 Feb 2017 16:00:48 +0200
| Newsgroups | gmane.comp.python.ipython.devel |
|---|---|
| Message-ID | <[email protected]> |
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