| 1 | initial version |
On a code cell, show(LatexExpr("\sqrt{2}")) just works. Perhaps did you forget the closing quotes.
Note that you can add longer text by changing the type of a cell to "markdown" (instead of "code"), there, you can just add latex code as $\sqrt{2}$.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.