#!/usr/bin/env bash

# Assume already has py36 Azure ML environment, which has most libraries already installed (TensorFlow, PyTorch etc.)
conda activate py36

# Newer versions of Pandas aren't supported as well by other libraries, so stick to 0.24.2
conda install -c anaconda pandas=0.24.2 --yes

# Install from conda-forge
conda install -c conda-forge \
python-blosc=1.8.1 graphviz python-graphviz rise \
vaex-core vaex-viz vaex-jupyter vaex-arrow vaex-server vaex-hdf5 vaex-astro vaex-distributed \
nltk spacy fastparquet python-snappy fbprophet pystan pyarrow=0.17.1 bqplot --yes

# For celery and NLP
pip install celery==4.4.0 celery[redis] celery[msgpack] msgpack-python fxcmpy alpha_vantage yfinance twython newspaper3k seasonal \
pdfminer.six vaderSentiment gensim textblob wordcloud quandl redis

# Install opencv for computer vision
conda install -c conda-forge opencv --yes

# Install transformers, various NLP/text libraries
pip install transformers cvlib pytesseract cmdstanpy==0.4 tabula-py==1.4.3 koalas textacy

# findatapy, finmarketpy, chartpy & graphics libraries
pip install finmarketpy chartpy findatapy \
   cufflinks==0.17.3 plotly==4.8.0 kaleido \
        dash==1.12.0 dash-html-components==1.0.3 dash-core-components==1.10.0 dash-table==4.7.0 jupyter-dash==0.2.1 \
        dtale==1.8.1

