TIL\(:\) Installing Python packages inside Jupyter

Dealing with Import Error\(:\) No module named Name
TIL
Published

November 19, 2022

The right way to install a package from within a Jupyter notebook. From here:

import sys

# using conda
!conda install --yes --prefix {sys.prefix} tensorflow

# using pip
!{sys.executable} -m pip install tensorflow

For this post, I ran into the following Quarto error when including the colon character in the description section of the preamble.

What seems to work is enclosing the colon character with $ signs. So hooray \(\LaTeX\)!