Escaping dollar sign in ipython notebook

Roberto picture Roberto · Apr 18, 2013 · Viewed 25.9k times · Source

I have a markdown cell in iPython that contains four dollar signs. iPython interprets anything between dollar signs as a MathJax expression, which is not what I want. How do I escape the dollar signs? Escaping them with a backslash prevents MathJax from kicking in, but the backslash shows in the compiled Markdown.

ANy ideas on how to get just the dollar sign?

Thanks

Answer

Donny Winston picture Donny Winston · Nov 9, 2018

Put two backslashes in front of dollar signs. For example:

Some prices: \\$3.10, \\$4.25, \\$8.50.

(running Jupyter notebook server 5.7.0)