I am trying to use Google Colab with LaTex to make a matrix with column and row labels. Outside of Colab, the code that I would need is
\documentclass[12pt]{report}
\usepackage{blkarray}
\usepackage{amsmath}
\begin{document}
[
\begin{blockarray}{cccccc}
a & b & c & d & e \
\begin{block}{(ccccc)c}
1 & 1 & 1 & 1 & 1 & f \
0 & 1 & 0 & 0 & 1 & g \
0 & 0 & 1 & 0 & 1 & h \
0 & 0 & 0 & 1 & 1 & i \
0 & 0 & 0 & 0 & 1 & j \
\end{block}
\end{blockarray}
]
\end{document}

as was posted by user Gonzalo Medina here. The Issue I am facing is importing the required packages to run this, as Google Colab will not run this as is when wrapped by either $'s or $$'s. How does one use \usepackage inside on Google Colab?
