[IPython-User] Notebook and Math display
Juergen Hasch
python@elbonia...
Sat Oct 6 14:39:20 CDT 2012
Am 06.10.2012 21:26, schrieb Thomas Kluyver:
> On 6 October 2012 20:04, Juergen Hasch <python@elbonia.de> wrote:
>> Anyone got an idea how to get the percent sign displayed ?
>
> I think you escape it by doubling it up: just put %% anywhere you want
> %, and the string formatting operation will reduce it to a single %.
Good hint, thank you!
It works using Math(r'\eta = %d \%%' %eta)
Juergen
More information about the IPython-User
mailing list