Skip to content

adding jupyter notebook mathjax config#121

Merged
choldgraf merged 1 commit intomasterfrom
extrahead
Apr 3, 2020
Merged

adding jupyter notebook mathjax config#121
choldgraf merged 1 commit intomasterfrom
extrahead

Conversation

@choldgraf
Copy link
Copy Markdown
Member

@choldgraf choldgraf commented Apr 3, 2020

This adds the default notebook mathjax config as a little javascript file.

@phaustin @chrisjsewell think this will fix the problem?

closes #99

@phaustin
Copy link
Copy Markdown
Contributor

phaustin commented Apr 3, 2020

Trying to test this, but I've hit a snag at the ipynb stage. Can someone confirm that

$$
\begin{align}
\frac{\partial v}{\partial t} + u \frac{\partial v}{\partial x} + v \frac{\partial v}{\partial y} + w \frac{\partial v}{\partial z} + fu = - \, \frac{1}{\rho} \, \frac{\partial p}{\partial y}
+ A_v \, \frac{\partial^2 v}{\partial z^2} + A_h \, \nabla^2 v
\end{align}
$$

works in jupyter? The jupyter parser adds a nested equation environment that mathjax chokes on.

@choldgraf
Copy link
Copy Markdown
Member Author

choldgraf commented Apr 3, 2020

Yep, just tried it and it works OK.

Though I just added $$ around the latex addition in this PR, and that also worked fine. I also tried the version you just gave and, with this PR, it worked fine too...

@phaustin
Copy link
Copy Markdown
Contributor

phaustin commented Apr 3, 2020

ok -- must be the latex notebook extension I've installed in jupyter that's getting in the way

@choldgraf
Copy link
Copy Markdown
Member Author

OK cool - I'm gonna merge this away and we can spot-check bugs if they come up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure Math Is Parsed/Rendered Consistently

2 participants