Skip to content

Commit

Permalink
late_mode inline
Browse files Browse the repository at this point in the history
so latex won't get wrapped with displaystyle and fail to render in matplotlib
  • Loading branch information
idanpa committed Dec 29, 2024
1 parent b3c1dc0 commit d857491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions calcpy/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def init(ip: IPython.InteractiveShell):
sympy.interactive.printing.init_printing(
pretty_print=True,
use_latex='mathjax',
latex_mode='inline',
use_unicode=not (ip.config.TerminalInteractiveShell.simple_prompt==True),
num_columns=shutil.get_terminal_size().columns,
ip=ip)
Expand Down

0 comments on commit d857491

Please sign in to comment.