Skip to content
Jupyter Notebooks and codes for Python for Finance (2nd ed., O'Reilly) by Yves Hilpisch.
Jupyter Notebook Other
Branch: master
Clone or download
Latest commit 3de58ff Dec 4, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
code Added dx folder. Dec 4, 2018
images Initial commit. Dec 1, 2018
source Initial commit. Dec 1, 2018
.gitignore Added dx folder. Dec 4, 2018 Added comment in Dec 3, 2018
py4fi2nd.yml Initial commit. Dec 1, 2018

Python for Finance (2nd ed., O'Reilly)

This repository provides all Python codes and Jupyter Notebooks of the book Python for Finance -- Mastering Data-Driven Finance (2nd edition) by Yves Hilpisch.

Visit the book page of O'Reilly under or order the book under

The codes of the book are based on Python 3.7. The codes presented in this Github repository are tested for Python 3.6 since at the time of creating it, TensorFlow was not yet compatible with Python 3.7. Once this has happened, appropriate changes (e.g. to the conda yaml file, see below) will be made.

Python Packages

There is a yaml file for the installation of required Python packages in the repository. This is to be used with the conda package manager (see If you do not have Miniconda or Anaconda installed, we recommend to install Miniconda 3.7 first (see

After you have cloned the repository, do on the shell (currently works on Mac OS):

cd py4fi2nd
conda env create -f py4fi2nd.yml
source activate py4fi2nd
jupyter notebook

Then you can navigate to the Jupyter Notebook files and get started.

Quant Platform

You can immediately use all codes and Jupyter Notebooks by registering on the Quant Platform under

Python for Finance Training & University Certificate

Check out our Python for Finance & Algorithmic Trading online trainings under

Check out also our University Certificate Program in Python for Algorithmic Trading under

Company Information

© Dr. Yves J. Hilpisch | The Python Quants GmbH

The Quant Platform ( and all codes/Jupyter notebooks come with no representations or warranties, to the extent permitted by applicable law. | |

Quant Platform |

Derivatives Analytics with Python (Wiley Finance) |

Python for Finance (O'Reilly) |

Python for Finance Online Training |

University Certificate in Python for Algorithmic Trading |

You can’t perform that action at this time.