Skip to content

Instantly share code, notes, and snippets.

@phinate
Last active October 15, 2021 13:13
Show Gist options
  • Save phinate/a3cd78e264169349b8208e0d8e952813 to your computer and use it in GitHub Desktop.
Save phinate/a3cd78e264169349b8208e0d8e952813 to your computer and use it in GitHub Desktop.
quickstart for jupyter-compatible venv & github CLI
sudo apt-get update
sudo apt-get install python3.8-venv
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install ipykernel
sudo python -m ipykernel install --name="base"
echo "now in venv with jupyter kernel named base"
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment