teaching materials in python at the ENSAE
Jupyter Notebook Python TeX PostScript HTML C#
Latest commit 7342639 Jan 20, 2017 @sdpython a few link
Permalink
Failed to load latest commit information.
_doc a few link Jan 20, 2017
_todo shorten paths Jul 15, 2016
_unittests documentation and gpu Jan 15, 2017
helpers/cs rename Csharp code (IPython --> jupyter) May 1, 2016
src documentation and gpu Jan 15, 2017
.gitattributes first version Apr 21, 2014
.gitignore update links and documentation Jan 9, 2017
.landscape.yml update examens Dec 13, 2015
.local.jenkins.win.yml update jenkins build Jan 6, 2017
.travis.yml update travis build Jan 18, 2017
LICENSE.txt documentation + unit test Mar 10, 2016
README.rst documentation and gpu Jan 15, 2017
appveyor.yml add python 3.6 for ci Jan 1, 2017
build_script.bat update unit test, reduce image size Apr 25, 2016
build_win_setup.py update unit test for theano Oct 30, 2016
gitpull.bat update script Jan 5, 2017
jenkins_setup.py update default configuration to run unit trests Jan 2, 2017
open_ipython_notebook_64.sh documentation Nov 23, 2014
publish_documentation_on_website.py small updates to publish my blog Sep 6, 2016
requirements.txt update travis build Jan 17, 2017
requirements2.txt update requirements Nov 19, 2016
requirements_conda.txt update travis build Jan 17, 2017
requirements_ext.txt update requirements Aug 7, 2016
run_doc_server.bat ajoute un moyen de lancer un serveur en local pour la documentation Oct 30, 2014
run_doc_server.py update imports Mar 27, 2016
run_pyspark_notebook.bat pep8 Dec 10, 2016
setup.py update setup.py Dec 5, 2016
travis_install.sh add convert_music_file May 15, 2016

README.rst

README

Build status Build Status Windows MIT License https://codecov.io/github/sdpython/ensae_teaching_cs/coverage.svg?branch=master GitHub Issues Waffle

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.

Contributions

Started in 2014/04.

Setup

For each Python, you need to install pymyinstall and type pymy_install and then remove the modules being tested (such as this one).

Jenkins requires a few extensions:

For Jupyter :

pip install widgetsnbextension
jupyter nbextension enable --py --sys-prefix widgetsnbextension

A local PyPi server needs to be installed:

c:\Python35_x64\Scripts\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 services.msc. To test Python versions Python 2.7, il faut créer un environnement virtuel et installer pyquickhelper :

cd D:\jenkins\venv\py35
c:\Python35_x64\scripts\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.