Prakhar Sharma
Prakhar Sharma

Reputation: 758

How to fix the display issues with Pretty-Printing of symbolic math in Ipython dark background?

I am using Spyder with Ipython console in dark mode. It is really hard to read the pretty-print of symbolic math in the console. This is how it looks like in light mode.

enter image description here

And this is how it looks like in the dark mode.

enter image description here

Is there any fix to this problem?

I know, while asking questions we should use minimal images. But the question is related to the display issue, so I thought it's better to add images.

Upvotes: 0

Views: 308

Answers (1)

Prakhar Sharma
Prakhar Sharma

Reputation: 758

Please go through this Github issue. The issue was resolved with this pull request

All we need to do is, go to Preferences-> IPython Console-> Advanced settings-> check use symbolic math.

If you want to set a custom forecolor for the SymPy, use this command in the IPython console

ip.kernel.set_sympy_forecolor(background_color='dark')

And it looks pretty cool now.

enter image description here

Upvotes: 1

Related Questions