Running Anaconda environments

My applications require the full Anaconda data science stack!
Python
Conda

Installers for Conda-based environments like Anaconda and Miniconda work on Platform.sh!



#!/bin/bash



# Download the latest Miniconda3 release and name the file `conda.sh`

curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o conda.sh



# Run the conda installer

bash conda.sh -b -p $PLATFORM_APP_DIR/conda



# Put the `conda` command in the path

. /app/conda/etc/profile.d/conda.sh



# Activate the conda environment and install the full Anaconda environment

conda activate base

conda install anaconda

Simply include a bash script that configures the Conda environment in the platform.app.yaml build hook.



#!/bin/bash



# Activate the conda environment that was created in the build hook

conda activate base



# Run whatever commands you need from Anaconda

jupyter notebook

Then, just activate the conda environment before you run your web app in your start command!

All of Anaconda's packages get baked into your app container.
R-language
PyPy
Stackless
Python
Anaconda isn't the only possibility! Any stack that can be installed with Conda—like R, PyPy, and Stackless Python—can be used!