Skip to content

jupyter notebook latex math equations render error  #1434

@lubianh93

Description

@lubianh93

environment

vscode 1.44.2
vscode-python-ext: 2020.4.76186

recurrent

  1. make a blank ipynb file
  2. paste the following code as markdown into the first cell

$$ \text{For } x \in \mathbb{R}^n \text{, } sigmoid(x) = sigmoid\begin{pmatrix} x_1 \\ x_2 \\ ... \\ x_n \\ \end{pmatrix} = \begin{pmatrix} \frac{1}{1+e^{-x_1}} \\ \frac{1}{1+e^{-x_2}} \\ ... \\ \frac{1}{1+e^{-x_n}} \\ \end{pmatrix}\tag{1} $$

the result cannot be displayed properly. but the result is displayed correctly in the other markdown

I tried to delete all the carriage returns and it displayed correctly.

$$ \text{For } x \in \mathbb{R}^n \text{, } sigmoid(x) = sigmoid\begin{pmatrix} x_1 \ x_2 \ ... \ x_n \\end{pmatrix} = \begin{pmatrix} \frac{1}{1+e^{-x_1}} \ \frac{1}{1+e^{-x_2}} \ ... \ \frac{1}{1+e^{-x_n}} \\end{pmatrix}\tag{1} $$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugupstream-vscodeBlocked on upstream VS code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions