<div dir="ltr"><div dir="ltr" class="gmail_msg">Good question. In theory, since we use MathJax for the rendering, this would be possible on a local notebook server by modifying the MathJax config in a custom.js file (see <a href="http://docs.mathjax.org/en/latest/options/HTML-CSS.html?highlight=stix">http://docs.mathjax.org/en/latest/options/HTML-CSS.html?highlight=stix</a> and <a href="http://docs.mathjax.org/en/latest/font-support.html" class="gmail_msg" target="_blank">http://docs.mathjax.org/en/latest/font-support.html</a>). You could set the preferredFont to null, and use one of the web fonts, for example.</div><div dir="ltr" class="gmail_msg"><br></div><div class="gmail_msg">It looks like Davide (author of MathJax) has talked about using sans serif fonts before: <a href="https://github.com/mathjax/mathjax-docs/wiki/Can-MathJax-use-font-xxxx%3F">https://github.com/mathjax/mathjax-docs/wiki/Can-MathJax-use-font-xxxx%3F</a>. He might have an updated answer if you ask on the MathJax mailing list.</div><div class="gmail_msg"><br></div><div class="gmail_msg">Thanks,</div><div class="gmail_msg"><br></div><div class="gmail_msg">Jason</div><div dir="ltr" class="gmail_msg"><br></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Tue, Feb 14, 2017 at 9:00 AM Johann Rohwer <<a href="mailto:jr@sun.ac.za" class="gmail_msg" target="_blank">jr@sun.ac.za</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The documentation on layout and styling of Jupyter widgets mentions that<br class="gmail_msg">
Label widget can also render LaTeX equations:<br class="gmail_msg">
<a href="http://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Styling.html#Latex" rel="noreferrer" class="gmail_msg" target="_blank">http://ipywidgets.readthedocs.io/en/latest/examples/Widget%20Styling.html#Latex</a><br class="gmail_msg">
<br class="gmail_msg">
On my machine, these equations render in a serif font by default. Is it<br class="gmail_msg">
possible to change the default font set to use sans-serif fonts, similar to<br class="gmail_msg">
matplotlib's?<br class="gmail_msg">
     matplotlib.rcPararams['mathtext.fontset'] = 'stixsans'<br class="gmail_msg">
<br class="gmail_msg">
Cheers,<br class="gmail_msg">
Johann<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
IPython-dev mailing list<br class="gmail_msg">
<a href="mailto:IPython-dev@scipy.org" class="gmail_msg" target="_blank">IPython-dev@scipy.org</a><br class="gmail_msg">
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br class="gmail_msg">
</blockquote></div></div>