Skip to content

Instantly share code, notes, and snippets.

@berendt
Last active September 12, 2020 10:18
Show Gist options
  • Save berendt/b7b5266ff802fada2ec56de779d64117 to your computer and use it in GitHub Desktop.
Save berendt/b7b5266ff802fada2ec56de779d64117 to your computer and use it in GitHub Desktop.
Jupyter

Jupyter

Installation

$ sudo apt-get install python3 python3-dev git curl
$ curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin admin

Letsencrypt

$ sudo tljh-config set https.enabled true
$ sudo tljh-config set https.letsencrypt.email christian@xxx
$ sudo tljh-config add-item https.letsencrypt.domains jupyter.xxx
$ sudo tljh-config reload proxy

nb_conda_kernels extension

Run this command with your Jupyter admin account.

$ sudo -E conda install -c conda-forge nb_conda_kernels

Zipline environment

Run the following commands with your Jupyter admin account.

$ sudo -E conda create -n zipline python=3.5 ipykernel
$ conda activate zipline
$ sudo -E conda install -c Quantopian zipline
$ conda deactivate
$ sudo tljh-config reload hub

Check python version in playbook

from platform import python_version
print(python_version())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment