math expressions in Jupyter

393 views
Skip to first unread message

Andrew Fefferman

unread,
Dec 14, 2016, 6:20:07 AM12/14/16
to Project Jupyter
Is there an efficient way to write math expressions in Jupyter notebook? I read that you can use MathJax in markdown cells, but having to write the expressions in Latex slows me down. It would be great if I could use keyboard shortcuts to enter mathematical symbols that would then immediately appear on the screen, as in Scientific Word. It is possible to save a Scientific Word document as a .tex file and then paste the contents of the .tex file into a Jupyter markdown cell, but this adds an additional step and there are some Latex commands that aren't compatible with Jupyter.

Thanks for your help,
Andrew

Thomas Kluyver

unread,
Dec 14, 2016, 6:49:58 AM12/14/16
to Project Jupyter
On 14 December 2016 at 11:20, Andrew Fefferman <andrew.f...@gmail.com> wrote:
Is there an efficient way to write math expressions in Jupyter notebook? I read that you can use MathJax in markdown cells, but having to write the expressions in Latex slows me down.

At present, I think the only way is typing the Latex. Someone recently pointed us to this tool:

https://daniel3735928559.github.io/guppy/

We'd like to integrate things like that to edit maths in the notebook. It's not very easy to plug it into our current architecture, but we want to make it easier to do things like that.

Thomas

Damon Allen

unread,
Dec 15, 2016, 6:46:10 AM12/15/16
to Project Jupyter


On Wednesday, December 14, 2016 at 6:20:07 AM UTC-5, Andrew Fefferman wrote:
there are some Latex commands that aren't compatible with Jupyter.

Just an FYI, you can add more Latex features into a Notebook by including the JS module from Mathjax in a javascript cell at the top of the Notebook.  Not ideal, but it is relatively easy.

Damon

Tony Hirst

unread,
Dec 18, 2016, 10:38:28 AM12/18/16
to Project Jupyter
Andrew

Another way of getting notation into the notebook is via sympy, which means you can also evaluate expressions. I'm not sure how well sympy works with the python-markdown extension though, to let you use the expressions inline.

--tony
Reply all
Reply to author
Forward
0 new messages