Skip to content

Instantly share code, notes, and snippets.

@pascalandy
Last active June 19, 2018 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pascalandy/69b2b1396137dace0d4eec5d05b19c0c to your computer and use it in GitHub Desktop.
Save pascalandy/69b2b1396137dace0d4eec5d05b19c0c to your computer and use it in GitHub Desktop.

Linux

apt-get install libatlas-base-dev python-dev gfortran pkg-config libfreetype6-dev

pip install enigma-catalyst matplotlib

Mac

install python http://sourabhbajaj.com/mac-setup/Python/

pip install --upgrade pip
pip install virtualenv
virtualenv catalyst
source catalyst/bin/activate
pip install enigma-catalyst
catalyst --version

close your work

deactivate

Start again

source catalyst/bin/activate

Do we need this?

brew install freetype pkg-config gcc openssl

docker

docker run -it \
--name catalyst \
-v /Users/ricky/Documents/docker-catalyst/projects:/projects \
-v /Users/ricky/Documents/docker-catalyst/.catalyst:/root/.catalyst \
-p 8888:8888/tcp \
devmtl/catayst:0.5.13

from: https://github.com/enigmampc/catalyst/blob/develop/Dockerfile

To access Jupyter when running docker locally (you may need to add NAT rules):

Go to

https://127.0.0.1:8888/login
https://127.0.0.1:8888      <- Please note HTTPS, not HTTP

Default password is 'jupyter'

To provide another, see: http://jupyter-notebook.readthedocs.org/en/latest/public_server.html#preparing-a-hashed-password

Once generated, you can pass the new value via docker run --env the first time you start the container.

You can also run an algo using the docker exec command. For example:

docker exec -it catalyst \
catalyst run -f /projects/my_algo.py \
--start 2015-1-1 \
--end 2016-1-1 \
/projects/result.pickle

source

https://enigma.co/catalyst/install.html

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