The web page for this course is [https://www.lsw.uni-heidelberg.de/pub_hludwig/teaching/pycourse/index.html].
The lecturer is Hans-G. Ludwig. You can contact me during the course and at H.Ludwig@lsw.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. I shall post the solutions of these exercises each day around 16:00 so that you can check your own solutions.
There will be problem sets during the week, and you will be required to hand-in these until a deadline indicated on the problem sheet. An average of 60% of the problem sets will be required to obtain 2 credit points at the end of the course. Participants can hand in solutions in groups of maximum two members. The solutions are not graded, however, if somebody requires grading the person has to hand in the solutions of his/her own. There is no mandatory presence at the course. The successful participation will be judged based on the handed-in solutions.
The course will be given in English.
I am happy to review or talk about your code/solutions to the exercises.
All solutions should be submitted as IPython (/Jupyter) notebooks or python programs (one notebook/program per problem set). Please use a filename that contains the name of the problem sheet and your name in the form problemX_familyname1-familyname2.ipynb.
The files should be mailed to me at H.Ludwig@lsw.uni-heidelberg.de.
The following criteria are taken into account when evaluating 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. If I/O is performed think about the environment in which the notebook needs to be executed.
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.
The deadlines for handing-in the Problem Sets are:
Problem Set 1 Wednesday, February 14th 7pm CET
Problem Set 2 Friday, February 16th 7pm CET
Problem Set 3 Friday, February 23rd 7pm CET
If you would like to use Python on your laptop, you have several possibilities:
You can download the notebooks I'm showing, the problem sets and the ancillary data files from here.
You can dowload the individual files as we go along.
Just refresh your notebook viewer after you've downloaded a file.
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. To use that, you have to manipulate your path. 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):
ipython3 notebook
A web browser should open and you should be ready to go.