[IPython-User] Is it possible to join math expressions with display()

Joon Ro joonpyro@gmail....
Sun Mar 25 13:19:38 CDT 2012


Hi,

I was wondering if it is possible to join math expressions with display()  
in ipython notebook.
For example, after solving the following:

     x_sol = solve(x +y - 3, x)[0]

If I just do display(x_sol), then notebook will print out the solution  
(-y+3). Is there any way to print it prettier, e.g. I get something like:

     x = - y + 3

with display()? If I just do display(x, Symbol('='), x_sol) then it will  
print them in separate lines.

Best,
Joon


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the IPython-User mailing list