Hello,

I'm using sage in an existing Jupyter notebook (that is using a 'normal' 
Python backend, and *not* sage). This works great except that all the 
output is plain text instead of a nice latex or image presentation 
(symbolic expressions, plots, ...).

I was able to activate pretty printing with the following code:
from sage.repl.rich_output.backend_ipython import BackendIPythonNotebook
backend = BackendIPythonNotebook()
backend.get_display_manager().switch_backend(backend, shell=get_ipython())

I feel like this a bit hacky. Is there a cleaner solution? Perhaps I'm 
looking for something like sympy's init_printing() method 
(https://docs.sympy.org/latest/tutorial/printing.html).

Thanks!
Tobias

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a450df64-7b85-49cd-abc1-2eac9aa6a230n%40googlegroups.com.

Reply via email to