Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 乳胶原';不在jupyter笔记本中以VS代码渲染,但运行jupyter笔记本_Visual Studio Code_Jupyter Notebook_Latex_Markdown - Fatal编程技术网

Visual studio code 乳胶原';不在jupyter笔记本中以VS代码渲染,但运行jupyter笔记本

Visual studio code 乳胶原';不在jupyter笔记本中以VS代码渲染,但运行jupyter笔记本,visual-studio-code,jupyter-notebook,latex,markdown,Visual Studio Code,Jupyter Notebook,Latex,Markdown,我今天安装了VS代码,并创建了一个非常简单的jupyter笔记本,它运行时没有任何错误,但即使在安装了LaTex Workshop扩展之后,也不会在VS代码中呈现LaTex 当我直接在jupyter中运行同一个笔记本时,它的渲染效果很好 这是有关降价单元格中的代码: ### This is another markdown cell with Latex This equation defines eigenvalues and eigenvectors: $Mx = \lambda x$

我今天安装了VS代码,并创建了一个非常简单的jupyter笔记本,它运行时没有任何错误,但即使在安装了LaTex Workshop扩展之后,也不会在VS代码中呈现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中,单元格如下所示:

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


我找到了发生这种情况的原因。答案是vscode的Python扩展(它允许在其中打开jupyter笔记本)目前不支持脱机使用此功能。他们甚至为此开了一家分店

编辑[2021年6月16日]
这个问题在上次版本的
vscode
和jupyter扩展中得到了修复。

我有完全相同的行为,我花了数小时寻找解决方案,据我所知,mathjax是jupyter笔记本用来渲染此latex代码的工具。在我的例子中,这只发生在我离线的时候(不幸的是大多数时候),但是一旦vscode可以访问internet,我就会重新运行该单元,它会完美地呈现它。即使在断开与互联网的连接后,它仍然能使它变得完美(甚至在其他单元中有新的latex代码)。我希望有些人有一个离线的解决方案。这是有意义的,因为我在一个非常封闭的环境。可能被阻止,无法正常渲染。我再次检查,它在脱机时再次停止工作。我在下面的答案中留下了这个问题的原因。作为一般的乳胶渲染引擎使用。嗨,我很高兴地说这个问题现在已经解决了。请参见编辑答案。