This course was originally written by Thomas Robitaille, and was carefully adapted by Markus Demleitner and Robert Schmidt.
The course is accessible through the KIP Jupyter Notebook pool [https://jupyter.kip.uni-heidelberg.de/].
The lecturer is Yiannis Tsapras. You can contact me during the course and at ytsapras@ari.uni-heidelberg.de
The block course lasts five days, and each day will follow this schedule:
The lectures will be mixed with exercise sessions - from time to time I will give you 5 or 10 minutes to complete a given task/exercise. There will be problem sets during the week, and you will be required to hand these in a deadline indicated on the problem sheet. An average of 60% in the problem sets will be required to obtain 2 credits points at the end of the course.
The course will be in English.
I am happy to review or talk about your code/solutions to exercises.
All solutions should be submitted as Jupyter notebooks (.ipynb) or python programs (.py) (one notebook/program per problem set). Please use a filename that contains the name of the problem sheet and your name. (e.g. problem_sheet_1_yiannis_tsapras.ipynb
).
The files can be submitted to me directly via email: ytsapras@ari.uni-heidelberg.de. Please use an appropriate subject heading such as Python course: Problem Sheet 1 submission
.
The following criteria are taken into account for grading problem sets - the notebook/program should:
Please make use of the ability to add comments and text around your code. Make it so that someone not familiar with the problem could read it and understand your solution.
There is never a unique solution to a problem, so it does not matter if your programs do not look the same as somebody else's! What matters most is that you get a chance to make mistakes and learn from them.
Problem set submissions need to be handed in separately for each participant.
The deadlines for the Problem Sets are:
Problem Set 1 This Wednesday, 7pm CEST
Problem Set 2 This Friday, 7pm CEST
Problem Set 3 Next Friday (one week after the end of the course), 7pm CEST
If you would like to use Python on your laptop, you have several possibilities:
For this course you will only ever need your Juputer notebooks. You can make copies, rename them, and edit them as you go along. No additional material will be provided, although you are encouraged to visit some of the following links after the end of the course if you are curious and want to learn about more complicated topics:
-The Scipy Lecture Notes at http://scipy-lectures.org/
-Matplotlib and Numpy video tutorial
-Integration, Interpolation and Curve fitting video tutorial
Before you can run Python in the ways described on this page, you will need to start up a command-line Terminal application. In the CIP pool this is located in the Anwendungen -> Zubehör -> Terminal menu.
To ensure a common environment, in the CIP pool we'll be using an updated version of ipython over what is installed on the machines themselves.
The easiest way is to use the environment already set up for you in https://jupyter.kip.uni-heidelberg.de/.
An alternative involves manipulating your path and referencing your local Anaconda install (not recommended). Here is one way to do that:
echo "export PATH=/local/py4sci/anaconda3/bin:$PATH" >> ~/.bashrc
exec bash
You only need to do that once.
Then fetch the notebooks and execute the notebook player (optionally in a subdirectory):
jupyter notebook
(older versions might require you to run ipython notebook instead)
A web browser should open and you should be ready to go.