This page gives access to the content of practical sessions I give at the ENSAE. They are based on Python. The project is hosted on GitHub can be modified by sending me pull requests:
That will be probably one of the few pages in English.
- Anaconda 2 and 3 (to be installed on the same hard drive than the Jenkins build folder)
- CMake (to build XGBoost)
- Java 64 bit (for Spark)
- Jenkins (CI)
- Miktex Basic Installer 64 bit (formula in the documentation) (check the option to silently install new packages)
- Pandoc (documentation)
- Python 3.5, 3.6, 2.7 64 bit (do not add the interpreter on the default PATH)
- R 3.2.2
- TDM-GCC 64bit (theano)
- Visual Studio 2015 Community Edition (check C++, C#, Python, CLang) (Cython)
For each Python, you need to install
pymy_install and then remove the modules
being tested (such as this one).
Jenkins requires a few extensions:
- Last Console Output
- Next Jobs
- Text File
For Jupyter :
pip install widgetsnbextension jupyter nbextension enable --py --sys-prefix widgetsnbextension
A local PyPi server needs to be installed:
pypi-server.exe -u -p 8067 --disable-fallback ..\..\local_pypi\local_pypi_server
If some Python scripts use keyring to retrieve passwords,
the Jenkins service needs to authentify. On Windows, it goes through
To test Python versions Python 2.7, il faut créer un environnement virtuel et installer
cd D:\jenkins\venv\py36 virtualenv.exe pyq --system-site-packages cd pyq\Scripts pip install pyquickhelper
For some projects (such as the compilation of pywin32), Windows SDK needs to be installed.
For Python 2.7, the module backports.shutil_get_terminal_size needs to be removed. It does not work from a virtual environment unless it is installed from there.