Reputation: 53
I can't seem to figure out how to write down chemical equations in Jupyter notebook. How do we install mhchem for Mathjax to use inside Jupyter notebook?
Upvotes: 3
Views: 1585
Reputation: 486
here you can find the detailed explanation on how to use and write chemical equations in jupyter notebook
and without any extension's you can do as well
from IPython.display import display, Math, Latex
display(Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx'))
display(Math(r'\ce{H2O}'))
try these in jupyter
Upvotes: 0
Reputation: 53
Add the following code on top of your jupyter notebook:
$$\require{mhchem}$$
Upvotes: 2