LaTex不会在VS Code中的jupyter笔记本中渲染,但会运行jupyter笔记本

时间:2020-08-05 22:21:51

标签: visual-studio-code jupyter-notebook latex markdown

我今天安装了VS Code,并创建了一个非常简单的jupyter笔记本,该笔记本可以正常运行,但即使安装了 LaTex Workshop 扩展程序,也无法在VS Code中呈现LaTex。

当我直接在jupyter中运行同一笔记本时,它可以正常显示。

这是相关的降价单元格中的代码:

### This is another markdown cell with Latex

This equation defines eigenvalues and eigenvectors: $Mx = \lambda x$

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

在jupyter中,该单元格如下所示:

enter image description here

在VS Code中,单元格如下所示:

enter image description here

1 个答案:

答案 0 :(得分:2)

我发现了为什么会这样。答案是vscode的Python扩展(允许在其中打开jupyter笔记本的扩展)目前不支持离线功能。因此,他们甚至打开了issue