How to define how sympy should print an instance of a class? #22068
Unanswered
evbernardes
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Each printer has a method you can define on the class. For LaTeX it is |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Taking the example of the Quaternion class, since I've been using it the most, I found the function "_print_Quaternion" inside of printing/latex.py.
How is it called exactly and how do I quickly implement this if I'm making a new class?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions