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.

LaTeX equations not showing when character '$' is abscent in .ipynb files

See original GitHub issue

In regular Jupyter Notebooks, one can include a LaTeX-style equation without surrounding the equation with ‘$’ in a markdown cell.

But when I try to do the same in VS Code with the Python extension, the equation won’t render. For example, in regular Jupyter Notebook:

\begin{align*}
(a+b)^2 = a^2+2ab+b^2
\end{align*}

Renders

equation

But in VS Code, the equation will only render when the code is surrounded with ‘$’, like this:

$\begin{align*}
(a+b)^2 = a^2+2ab+b^2
\end{align*}$

Is it possible to include the same funcionality for .ipynb files as in Jupyter Notebooks? It breaks many of my codes with LaTeX equations, and adding ‘$’ to all of them is infeasible.

Edit: Python VS Code extension version: 2019.10.41019 VS Code version: 1.39.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Oct 15, 2019

Not sure why you closed this? We’d still like to fix it.

0reactions
lon91ongcommented, Dec 12, 2020

Like this ipynb file

$$ \begin{eqnarray}
\frac{dx}{dt} &=& v, \text{ and} \\\
\frac{dv}{dt} &=& a,
\end{eqnarray} $$

multi lines equation doesn’t work, my version of VS Code is:

Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042
Read more comments on GitHub >

github_iconTop Results From Across the Web

LaTeX equations not showing when character '$' is abscent in ...
In regular Jupyter Notebooks, one can include a LaTeX-style equation without surrounding the equation with '$' in a markdown cell.
Read more >
Converting jupyter notebook to pdf, latex equations not ...
When I download this as a pdf, the equations might be missing some characters and the $ sign used to enter the latex...
Read more >
Writing Math Equations in Jupyter Notebook - Medium
In this post I'll show you, with examples, how to write equations in Jupyter notebook's markdown. I have selected these equations such that ......
Read more >
Unicode characters missing when converting from jupyter to ...
I have installed the texlive texlive-extra and pandoc packages. I have tried to do this with the pdflatex engine. The strangest part is...
Read more >
Jupyter Notebook Documentation, Release 6.5.0.dev0
Notebook documents: a representation of all content visible in the web ... Markdown cells: Narrative text with embedded LaTeX equations.
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