Inline math mode on iPython notebook

南楼画角 提交于 2019-12-06 02:03:33

问题


In iPython notebook, how can I write a mathematic formula such as r^2 in a line (inline math mode in latex vocabulary). ie. Is it possible to not go on a new line when the formula is printed.

If like in LaTeX, it should be \(r^2\) but it doesn't work...

Thanks for your help !


回答1:


In a markdown cell you can use $s, e.g. $r^2$. This requires MathJax from CDN or a local MathJax installation. If you have an internet connection it should work right out of the box.

see e.g. Typesetting Equations example notebook



来源:https://stackoverflow.com/questions/19412644/inline-math-mode-on-ipython-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!