Skip to content

Instantly share code, notes, and snippets.

@redbasecap
Last active September 26, 2023 06:47
Show Gist options
  • Save redbasecap/bdc8938463d7c072759cc11415635352 to your computer and use it in GitHub Desktop.
Save redbasecap/bdc8938463d7c072759cc11415635352 to your computer and use it in GitHub Desktop.
Install Jupyter Lab on Mac M1 / M2 with convert to PDF working
# Step 1: Install Jupyter Lab with brew (using miniconda)
brew install miniconda
conda init "$(basename "${SHELL}")"
## restart the shell
conda create -n jupyter python ipython jupyterlab nodejs
conda activate jupyter
## run juypter
jupyter lab

Step 2: Install Xelatex

brew install pandoc brew tap homebrew/cask brew install --cask basictex eval "$(/usr/libexec/path_helper)"

Update $PATH to include /usr/local/texlive/2022basic/bin/universal-darwin

sudo tlmgr update --self sudo tlmgr install texliveonfly sudo tlmgr install xelatex sudo tlmgr install adjustbox sudo tlmgr install tcolorbox sudo tlmgr install collectbox sudo tlmgr install ucs sudo tlmgr install environ sudo tlmgr install trimspaces sudo tlmgr install titling sudo tlmgr install enumitem sudo tlmgr install rsfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment