Dove World
Dove World

Reputation: 53

Is there a way to write down chemical equations in jupyter notebook by using external packages for Mathjax?

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

Answers (2)

i_am_deesh
i_am_deesh

Reputation: 486

here you can find the detailed explanation on how to use and write chemical equations in jupyter notebook

https://notebooks.azure.com/OUsefulInfo/projects/gettingstarted/html/3.1.1%20Chemical%20Equations.ipynb

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

Dove World
Dove World

Reputation: 53

Add the following code on top of your jupyter notebook:

$$\require{mhchem}$$       

Upvotes: 2

Related Questions