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
Note
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\)!