Quantity defaults to latex output in ipython (Spyder), which is unreadable
See original GitHub issueEDIT: 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:
- Created 3 years ago
- Comments:17 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Dear Marten Indeed I have raised an issue with Spyder. https://github.com/spyder-ide/spyder/issues/14895
@ccordoba12 - thanks for letting us know!