[IPython-User] Notebook and Math display
Juergen Hasch
python@elbonia...
Sat Oct 6 14:04:39 CDT 2012
When I try this in an IPython notebook:
from IPython.display import Math
Math(r'\eta = %d' %33)
it works and prints a pretty equation.
Math(r'\%')
Works, too.
This doesn't work however:
Math(r'\eta = %d \%' %33)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-53-df4815434c7d> in <module>()
----> 1 Math(r'x = %d \%' %1)
ValueError: incomplete format
Anyone got an idea how to get the percent sign displayed ?
Juergen
More information about the IPython-User
mailing list