Skip to content

Commit

Permalink
Updated conda environments
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedamen committed Dec 14, 2020
1 parent 7449f0b commit fc17967
Show file tree
Hide file tree
Showing 11 changed files with 408 additions and 379 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ https://github.com/cuemacro/teaching/blob/master/pythoncourse/installation/insta
in https://nbviewer.jupyter.org/ ie. to go to the following link
https://nbviewer.jupyter.org/github/cuemacro/teaching/blob/master/pythoncourse/installation/installing_anaconda_and_pycharm.ipynb

# Jupyter notebooks on teaching
# Jupyter notebooks on teaching

* [Installing Anaconda Python and PyCharm (nbviewer link)](https://nbviewer.jupyter.org/github/cuemacro/teaching/blob/master/pythoncourse/installation/installing_anaconda_and_pycharm.ipynb) - how to install a Python environment for data analysis

Expand All @@ -22,6 +22,8 @@ You can also run some of the notebooks interactively with Binder too

# Coding log

* 14 Dec 2020
* Updated conda environments for Windows and Linux for TensorFlow 2.3.0 and pyarrow 2.0.0
* 17 Nov 2020
* Updated Anaconda installation notes
* Added Google Colab details
Expand Down
2 changes: 1 addition & 1 deletion pythoncourse/coursecode/packagedemo/unedash.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from findatapy.market import Market, MarketDataRequest, MarketDataGenerator
from chartpy import Chart, Style

# For scaling realized volatility later
# For scaling realized_vol volatility later
import math

# external CSS stylesheets
Expand Down
4 changes: 2 additions & 2 deletions pythoncourse/coursecode/packagedemo/voldash.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from findatapy.market import Market, MarketDataRequest, MarketDataGenerator
from chartpy import Chart, Style

# For scaling realized volatility later
# For scaling realized_vol volatility later
import math

# For plotting
Expand Down Expand Up @@ -68,7 +68,7 @@
* We can select the currency pair
* And also the tenor
The application will then compute realized volatility on the fly.
The application will then compute realized_vol volatility on the fly.
'''),

# Plotly chart output
Expand Down
Binary file modified pythoncourse/coursecode/xlwings/backtest_xl/backtest_xl.xlsm
Binary file not shown.
Binary file modified pythoncourse/coursecode/xlwings/plot_xl/plot_xl.xlsm
Binary file not shown.
24 changes: 7 additions & 17 deletions pythoncourse/installation/create_conda_env_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,18 @@ source activate py37class

# Install Tensorflow, PyTorch and Anaconda (lots of packages)
# only if you have GPU below 2 lines instead of CPU versions
# conda install anaconda tensorflow-gpu=2.2.0 anaconda pandas=1.0.5 scikit-learn graphviz python-graphviz matplotlib --yes
# conda install pytorch torchvision cudatoolkit=10.1 -c pytorch --yes
conda install anaconda tensorflow=2.2.0 anaconda pandas=1.0.5 scikit-learn graphviz python-graphviz matplotlib --yes
conda install pytorch torchvision cpuonly -c pytorch --yes

# OpenCV and PyArrow need to be installed earlier
conda install -c conda-forge pyarrow=1.0.1 opencv modin=0.8.0 --yes

# xlwings only works for Mac omit on Linux
# conda install -c conda-forge xlwings=0.20.2 --yes

# Install from conda-forge (pyarrow is a newer version!)
conda install -c conda-forge \
# conda install anaconda tensorflow-gpu=2.3.0 anaconda pandas=1.0.5 scikit-learn graphviz python-graphviz matplotlib --yes
# conda install pytorch torchvision cudatoolkit=10.1 \
conda install anaconda tensorflow=2.3.0 anaconda pandas=1.0.5 scikit-learn graphviz python-graphviz matplotlib --yes
conda install pytorch torchvision cpuonly \
pyarrow opencv modin=0.8.0 \
boto3 jupyter_contrib_nbextensions jupyter_nbextensions_configurator \
redis-py python-blosc pathos textblob \
vaex=3.0.0 \
spacy fastparquet python-snappy nodejs pystan fbprophet setuptools-git \
pyspark=3.0.0 koalas \
pyspark koalas \
vispy datashader pyproj holoviews streamz quandl bqplot \
--yes

# vaex-core vaex-viz vaex-jupyter vaex-arrow vaex-server vaex-hdf5 vaex-astro vaex-distributed vaex-ml
-c pytorch -c conda-forge --yes

# Install database
# Install Celery
Expand Down
34 changes: 12 additions & 22 deletions pythoncourse/installation/create_conda_env_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,18 @@ call conda activate py37class

REM Install Tensorflow, PyTorch and Anaconda (lots of packages)
REM only if you have GPU below 2 lines instead of CPU versions
REM call conda install anaconda tensorflow-gpu=2.1.0 anaconda pandas=1.0.5 scikit-learn=0.20.2 graphviz python-graphviz matplotlib=3.2.2 --yes
REM call conda install pytorch torchvision cudatoolkit=10.1 -c pytorch --yes
call conda install anaconda tensorflow=2.1.0 anaconda pandas=1.0.5 scikit-learn=0.20.2 graphviz python-graphviz matplotlib=3.2.2 --yes
call conda install pytorch torchvision cpuonly -c pytorch --yes

REM OpenCV and PyArrow need to be installed earlier
call conda install -c conda-forge pyarrow=1.0.1 opencv modin=0.8.0 --yes

REM xlwings only works for Mac or Windows
call conda install -c anaconda xlwings=0.20.2 --yes

REM Install from conda-forge (pyarrow is a newer version!)
call conda install -c conda-forge ^
boto3 jupyter_contrib_nbextensions jupyter_nbextensions_configurator ^
redis-py python-blosc pathos textblob ^
vaex=3.0.0 ^
pyspark=3.0.0 koalas ^
spacy fastparquet python-snappy nodejs pystan fbprophet setuptools-git ^
vispy datashader pyproj holoviews streamz quandl bqplot blpapi ^
--yes

REM vaex-core vaex-viz vaex-jupyter vaex-arrow vaex-server vaex-hdf5 vaex-astro vaex-distributed vaex-ml
REM call conda install anaconda tensorflow-gpu=2.3.0 anaconda pandas=1.0.5 scikit-learn=0.20.2 graphviz python-graphviz matplotlib xlwings=0.20.2 --yes
REM call conda install pytorch torchvision cudatoolkit=10.1 ^
call conda install anaconda tensorflow=2.3.0 anaconda pandas=1.0.5 scikit-learn=0.20.2 graphviz python-graphviz matplotlib xlwings=0.20.2 --yes
call conda install pytorch torchvision cpuonly ^
pyarrow=2.0.0 opencv modin=0.8.0 ^
boto3 jupyter_contrib_nbextensions jupyter_nbextensions_configurator ^
redis-py python-blosc pathos textblob ^
vaex=3.0.0 ^
pyspark koalas ^
spacy fastparquet python-snappy nodejs pystan fbprophet setuptools-git ^
vispy datashader pyproj holoviews streamz quandl bqplot blpapi ^
-c pytorch -c conda-forge --yes

REM Install database
REM Install Celery
Expand Down
Loading

0 comments on commit fc17967

Please sign in to comment.