Skip to content

Instantly share code, notes, and snippets.

@farrokhi
Last active February 10, 2022 10:06
Show Gist options
  • Save farrokhi/72986bff82b56e450f42f51266ee1d07 to your computer and use it in GitHub Desktop.
Save farrokhi/72986bff82b56e450f42f51266ee1d07 to your computer and use it in GitHub Desktop.
Setup a sane and usable Jupyter and Pandas environment on MacOS

setup environment

virtualenv .venv
source .venv/bin/activate
pip3 install jupyter pandas
pip3 install matplotlib
pip3 install seaborn scipy # optional

setup TeX for PDF export

# install bare minimum TeX package and conversion tools
brew install basictex pandoc
eval "$(/usr/libexec/path_helper)"   # or reopen Terminal

# install TeX modules
# remember: tlmgr is pretty stupid with dependencies. You might need to run these several times to make this work.
sudo tlmgr update --self --all
sudo tlmgr install adjustbox caption collectbox \
     enumitem environ eurosym jknapltx parskip \
     pgf rsfs tcolorbox titling trimspaces ucs \
     ulem upquote collection-fontsrecommended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment