LaTeX Render wrong - Sympy init_printing
See original GitHub issueBug: Notebook Editor, trying to print using LaTeX
While using sympy in jupyter notebook in vscode, the output of the cell is not using the right “printer”… Very similar to issue #8742 but it is closed and I can’t post there.
Steps to cause the bug to occur
- Open a jupyter notebook
- write the following code:
from sympy import *
init_printing(use_latex=True) # Tried the following as well: init_printing(use_latex="mathjax", latex_mode="equation")
var('x,y')
y = expand((x+y)**2)
y
3.run cell and see output
Actual behavior
Expected behavior
(ran the exact same code in jupyter lab)
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Local
- Extension version: v2020.9.112786
- VS Code version: 1.49.2
- Setting python.languageServer: Jedi
- Python and Anaconda version: Python 3.8.5 / Conda 4.8.5
- OS: Linux (distro): Pop!_OS 20.04 LTS
- Virtual environment: conda
Python Output
Info 2020-10-01 19:57:03: Python Daemon (pid: 43128): Kernel launched, with PID as a daemon 43132 Info 2020-10-01 19:57:27: Executing cell NotebookImport#14 Info 2020-10-01 19:57:27: Waiting for jupyter server and web panel … Info 2020-10-01 19:57:27: Submitting code for 5b1a5571-8966-4a8a-a521-785d3da07608 Info 2020-10-01 19:57:27: Kernel switching to busy Info 2020-10-01 19:57:27: Kernel switching to idle Info 2020-10-01 19:57:27: Kernel switching to busy Info 2020-10-01 19:57:30: Kernel switching to idle Info 2020-10-01 19:57:30: Finished execution for NotebookImport#14 Info 2020-10-01 19:57:30: Finished executing cell NotebookImport#14 Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
Sorry but I don’t know. You could check by installing the August release to see if we did a better job then. We should be just leaving the text/latex as is. The renderer for that comes from nteract.
Yup, same behavior in the August release. Validated!