question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quantity defaults to latex output in ipython (Spyder), which is unreadable

See original GitHub issue

EDIT: Workaround found at https://github.com/astropy/astropy/issues/11209#issuecomment-754329578

Starting Spyder, and typing anything along the following lines into the ipython console…

>>>from astropy import units as u
>>>1 * u.K

…produces unreadable garbage because it defaults to Latex, which manifests as poorly-rendered white outlines on a black background. To add insult to injury, the rendering takes approximately 1 second.

The “workaround” is to write e.g. “str(1 * u.K)”, but that’s unacceptable because it becomes very tedious very quickly when examining numerous quantities.

After extensive searching I cannot find any way to control the default behaviour.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
moux233commented, Mar 9, 2021

Dear Marten Indeed I have raised an issue with Spyder. https://github.com/spyder-ide/spyder/issues/14895

1reaction
mhvkcommented, Feb 12, 2022

@ccordoba12 - thanks for letting us know!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to print Latex with Sympy in Canopy's IPython qtconsole?
I'm running the 64-bit distribution of Canopy on Mac os X 10.9.3. When I work with Sympy in the IPython QTConsole included in...
Read more >
Python
This page is a guide for how to install Python and start using it for scientific computing. Python is a general-purpose programming language—one...
Read more >
Matplotlib.pdf
matplotlib is a library for making 2D plots of arrays in Python. Although it has its origins in emulating the. MATLAB® 1 graphics...
Read more >
Printing - SymPy 1.11 documentation
LaTeX. MathML. Dot. In addition to these, there are also “printers” that can output SymPy objects to code, such as C, Fortran, Javascript, ......
Read more >
Notebooks suck: change my mind : r/Python - Reddit
Fair enough, I much prefer ipython for this, but to each their own. ... You can export them to a regular python script...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found