CoCalc Public Filestmp / 2017-05-17-221715.sagews
Author: William A. Stein
%md
Displayed matrix works:
$$\begin{bmatrix} a & b \\ b & c \end{bmatrix}$$

Non-displayed matrix does not work due to some backslash escaping we do not want touching tex:
$\begin{bmatrix} a & b \\ b & c \end{bmatrix}$

Proof that this is the problem:
$\begin{bmatrix} a & b \\\\ b & c \end{bmatrix}$


Displayed matrix works: $\begin{bmatrix} a & b \\ b & c \end{bmatrix}$

Non-displayed matrix does not work due to some backslash escaping we do not want touching tex: $\begin{bmatrix} a & b \\ b & c \end{bmatrix}$

Proof that this is the problem: $\begin{bmatrix} a & b \\\\ b & c \end{bmatrix}$

for i in range(10):
print i

0 1 2 3 4 5 6 7 8 9