text: user4894: Assume I have an infix expression such as k1*s1, how do I use libsbml to translate this expression to mathml using the python interface?
  
  user4894: It’s quite straightforward to convert infix to mathml using libsbml. Make sure you have libsbml installed in python by typing
  pip install python-libsbml
  
  at the windows/Mac/Linux command line or 
  !pip install python-libsbml
  
  if you are running a Jupyter notebook. Some tools such as Tellurium already have libsbml preinstalled.
  At the python command line type
  import libsbml
  
  to import the package. To enter the infix expression type the following:
  p = libsbml.parseFormula ('k1*s1')
  
  To generate the mathml type
  print (libsbml.writeMathMLToString (p))
  
  
original_text: 4894: <p>Assume I have an infix expression such as k1*s1, how do I use libsbml to translate this expression to mathml using the python interface?</p>
   4894: 
  
  <p>It’s quite straightforward to convert infix to mathml using libsbml. Make sure you have libsbml installed in python by typing</p>
  
  <pre class="lang-py prettyprint-override"><code>pip install python-libsbml
  </code></pre>
  
  <p>at the windows/Mac/Linux command line or </p>
  
  <pre class="lang-py prettyprint-override"><code>!pip install python-libsbml
  </code></pre>
  
  <p>if you are running a Jupyter notebook. Some tools such as <a href="http://tellurium.analogmachine.org/" rel="nofollow noreferrer">Tellurium</a> already have libsbml preinstalled.</p>
  
  <p>At the python command line type</p>
  
  <pre class="lang-py prettyprint-override"><code>import libsbml
  </code></pre>
  
  <p>to import the package. To enter the infix expression type the following:</p>
  
  <pre class="lang-py prettyprint-override"><code>p = libsbml.parseFormula ('k1*s1')
  </code></pre>
  
  <p>To generate the mathml type</p>
  
  <pre class="lang-py prettyprint-override"><code>print (libsbml.writeMathMLToString (p))
  </code></pre>
  