Skip to content
Snippets Groups Projects
Commit 3a2d0891 authored by Mihai Lefter's avatar Mihai Lefter
Browse files

Welcome lecture assignments and software.

parent 3998f10f
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
<span style="font-size: 200%">Programming in Python</span>
===
<br>
<img src="python_logo.svg" alt="Python Logo">
%% Cell type:markdown id: tags:
About the course
===
* Aimed at PhD students, Postdocs, researchers, analysts, ...
* Focus on:
- Basic understanding of Python.
- Programming as a tool to do your research.
- Slightly biased on bioinformatics.
**Note:** This is its third session.
%% Cell type:markdown id: tags:
Hands on!
===
**Programming is fun!**
* You only learn programming by doing it.
* Lecture format:
- Blended teaching + exercising.
* Have your laptop open during the lessons.
* Repeat the code from the slides, play around with it.
* Do the session exercises.
* There will be a few assignments to submit.
%% Cell type:markdown id: tags:
Teachers
===
* Jeroen Laros<br>
[j.f.j.laros@lumc.nl](mailto:j.f.j.laros@lumc.nl)
* Mihai Lefter<br>
[m.lefter@lumc.nl](mailto:m.lefter@lumc.nl)
* Jonathan Vis<br>
[j.k.vis@lumc.nl](mailto:j.k.vis@lumc.nl)
* Mark Santcroos<br>
[m.a.santcroos@lumc.nl](mailto:m.a.santcroos@lumc.nl)
* Guy Allard<br>
[w.g.Allard@lumc.nl](mailto:w.g.allard@lumc.nl)
%% Cell type:markdown id: tags:
Program
===
| Day | Time | Lesson | Teacher |
|-------------------|-------|------------------------------------ |----------|
| **Monday, 18/9** | 9 - 9:30 | Welcome, Setup | Mihai |
| | 9:30 - 10:30 | Introduction to Python (1) | Mihai |
| | 10:30 - 11:30 | Introduction to Python (2) | Jeroen |
| | 11:30 - 12:30 | Introduction to Python (3) | Mihai |
| | 12:30 - 13:00 | Practical help | |
| **Tuesday, 19/9** | 9-10 | Assignments review | |
| | 10-11 | More Python Goodness (1) | Mihai |
| | 11-12 | More Python Goodness (2) | Mihai |
| | 12-13 | IPython Notebook | Mark |
%% Cell type:markdown id: tags:
| Day | Time | Lesson | Teacher |
|---------------------|-------|------------------------------------ |----------|
| **Wednesday, 20/9** | 9-10 | Assignments review | |
| | 10-11 | Data manipulation (NumPy, Pandas) | Mark |
| | 11-12 | Data visualisation (1) | Guy |
| | 12-13 | Data visualisation (2) | Guy |
| **Thursday, 21/9** | 9-10 | Assignments review | |
| | 10-11 | Object-oriented programming | Jonathan |
| | 11-12 | Biopython | Guy |
| | 12-13 | Putting everything together | Jeroen |
All slides are linked as one-page documents from the course website: [https://git.lumc.nl/courses/programming-course](https://git.lumc.nl/courses/programming-course)
%% Cell type:markdown id: tags:
Software requirements
===
* Anaconda:
* Python 2.7
* Comes with all that's required:
- NumPy, matplotlib, Biopython
- Python interpreter, Jupyter Notebook.
- Libraries:
- NumPy, Panda, matplotlib, Bokeh, Biopython, ...
* [Installation instructions](https://docs.anaconda.com/anaconda/install/).
* Git
%% Cell type:markdown id: tags:
Assignments
===
* We make use of GitHub Classroom:
- GitHub account required.
- Link with assignment repository.
- Own forked repository to work on - automated by GitHub.
- Direct file upload to repository is possible.
* We make use of GitHub Classroom.
* GitHub account required.
* Receive link with assignment repository.
* Own forked repository to work on.
- Clone it.
- Code.
- Push it.
* Direct file upload to repository is also possible.
%% Cell type:markdown id: tags:
Getting help
===
* Ask a teacher.
* If it's private, mail one of the teachers.
%% Cell type:code id: tags:
``` python
from IPython.display import HTML
def css_styling():
styles = open('../styles/custom.css', 'r').read()
return HTML('<style>' + styles + '</style>')
css_styling()
```
%% Output
<IPython.core.display.HTML object>
%% Cell type:markdown id: tags:
License: [Creative Commons Attribution 3.0 License (CC-by)](http://creativecommons.org/licenses/by/3.0)
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
viewBox="0 0 1052.4 368.09"
id="svg2"
inkscape:version="0.91 r13725"
sodipodi:docname="python_logo.svg"
width="1052.4"
height="368.09003">
<metadata
id="metadata14">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs12" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2495"
inkscape:window-height="1416"
id="namedview10"
showgrid="false"
inkscape:zoom="0.8009039"
inkscape:cx="589.44223"
inkscape:cy="227.21656"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<g
transform="translate(324.63321,-501.97596)"
id="g4">
<path
d="m 524.02,846.67 c -33.839,-1.2297 -54.784,-11.264 -60.113,-28.8 l -0.6194,-2.0382 -0.0869,-34.378 c -0.0994,-39.346 -0.0645,-40.143 2.0299,-46.408 3.8218,-11.432 12.859,-18.803 26.993,-22.016 l 3.1253,-0.71039 38.862,-0.17214 c 27.843,-0.12334 39.388,-0.26278 40.716,-0.49179 7.7818,-1.3418 12.887,-3.3508 17.679,-6.9578 5.7253,-4.309 10.451,-11.685 12.563,-19.607 1.5862,-5.9503 1.5436,-5.3002 1.715,-26.202 l 0.15935,-19.431 27.992,0 2.7176,0.75892 c 14.561,4.0662 25.133,17.862 29.633,38.671 1.7311,8.0037 1.7492,8.2998 1.7524,28.718 0.003,19.87 -0.006,20.044 -1.3943,26.562 -1.3645,6.4064 -3.1506,11.619 -5.8196,16.985 -5.3828,10.822 -13.32,18.146 -23.357,21.553 -5.7335,1.9464 -0.93423,1.7836 -57.342,1.9449 l -50.82,0.14528 0,9.24 33.699,0.13588 33.699,0.13589 0.13588,16.578 c 0.0747,9.1177 0.0421,17.36 -0.0725,18.316 -0.27725,2.3131 -1.2585,5.0581 -2.6625,7.4485 -1.4458,2.4616 -5.8352,6.8642 -8.8149,8.8417 -9.0505,6.0063 -22.849,9.6675 -41.036,10.888 -6.1192,0.41068 -14.785,0.52882 -21.333,0.29086 z m 46.743,-21.481 c 6.4954,-1.053 11.145,-7.4099 10.074,-13.773 -0.88336,-5.2488 -4.9357,-9.3086 -10.155,-10.173 -7.9672,-1.3202 -15.213,5.9958 -13.795,13.929 1.0313,5.7708 5.6585,9.8336 11.701,10.274 0.2242,0.0163 1.2026,-0.0992 2.1741,-0.25667 z m -144.8,-49.035 c -7.6439,-1.3898 -15.171,-6.0227 -20.491,-12.611 -10.075,-12.479 -15.162,-33.284 -14.523,-59.406 0.3979,-16.278 2.8315,-28.362 7.782,-38.641 6.3813,-13.25 15.916,-21.108 28.787,-23.724 2.8193,-0.57313 2.9606,-0.57462 52.615,-0.55479 27.384,0.0109 49.989,-0.0572 50.235,-0.1514 0.38956,-0.14949 0.44634,-0.75521 0.44634,-4.7622 0,-2.525 -0.0306,-4.6203 -0.0679,-4.6562 -0.0374,-0.0359 -15.232,-0.12763 -33.767,-0.20383 l -33.699,-0.13854 -0.07,-17.514 c -0.0766,-19.183 -0.092,-18.96 1.5503,-22.483 5.6933,-12.213 22.465,-19.633 49.339,-21.829 1.9431,-0.1588 7.2017,-0.36064 11.686,-0.44852 29.753,-0.58311 51.579,4.8575 63.052,15.717 1.271,1.2031 2.9273,2.9988 3.6807,3.9906 1.7132,2.255 3.8458,6.5603 4.6624,9.4125 l 0.62243,2.1741 0,36.145 c 0,33.739 -0.0327,36.316 -0.49158,38.726 -0.59212,3.1098 -2.0144,7.4792 -3.1997,9.8301 -4.1039,8.1393 -11.665,14.003 -21.689,16.82 -6.5086,1.8288 -3.5525,1.7086 -46.637,1.8956 -42.787,0.18564 -40.201,0.086 -46.2,1.7812 -11.651,3.2927 -20.21,12.367 -23.687,25.113 -1.5631,5.7299 -1.5284,5.1946 -1.6996,26.225 l -0.15925,19.567 -13.045,0.0447 c -9.8474,0.0338 -13.532,-0.0439 -15.034,-0.31707 z m 71.232,-162.58 c 4.9456,-2.3234 7.924,-7.7698 7.0286,-12.853 -0.82592,-4.6888 -4.0455,-8.4308 -8.4148,-9.7804 -6.983,-2.1568 -14.269,2.2939 -15.558,9.5032 -1.0478,5.8633 2.3432,11.571 8.0784,13.598 1.2817,0.45295 2.1059,0.54476 4.303,0.47938 2.3937,-0.0712 2.9375,-0.18417 4.5622,-0.94747 z"
id="path6"
inkscape:connector-curvature="0"
style="fill:#fed142" />
<path
d="m 425.96,776.15 c -7.6439,-1.3898 -15.171,-6.0227 -20.491,-12.611 -10.075,-12.479 -15.162,-33.284 -14.523,-59.406 0.3979,-16.278 2.8315,-28.362 7.782,-38.641 6.3813,-13.25 15.916,-21.108 28.787,-23.724 2.8193,-0.57313 2.9606,-0.57462 52.615,-0.55479 27.384,0.0109 49.989,-0.0572 50.235,-0.1514 0.38956,-0.14949 0.44634,-0.75521 0.44634,-4.7622 0,-2.525 -0.0306,-4.6203 -0.0679,-4.6562 -0.0374,-0.0359 -15.232,-0.12763 -33.767,-0.20383 l -33.699,-0.13854 -0.07,-17.514 c -0.0766,-19.183 -0.092,-18.96 1.5503,-22.483 5.6933,-12.213 22.465,-19.633 49.339,-21.829 1.9431,-0.1588 7.2017,-0.36064 11.686,-0.44852 29.753,-0.58311 51.579,4.8575 63.052,15.717 1.271,1.2031 2.9273,2.9988 3.6807,3.9906 1.7132,2.255 3.8458,6.5603 4.6624,9.4125 l 0.62243,2.1741 0,36.145 c 0,33.739 -0.0327,36.316 -0.49158,38.726 -0.59212,3.1098 -2.0144,7.4792 -3.1997,9.8301 -4.1039,8.1393 -11.665,14.003 -21.689,16.82 -6.5086,1.8288 -3.5525,1.7086 -46.637,1.8956 -42.787,0.18564 -40.201,0.086 -46.2,1.7812 -11.651,3.2927 -20.21,12.367 -23.687,25.113 -1.5631,5.7299 -1.5284,5.1946 -1.6996,26.225 l -0.15925,19.567 -13.045,0.0447 c -9.8474,0.0338 -13.532,-0.0439 -15.034,-0.31707 z m 71.232,-162.58 c 4.9456,-2.3234 7.924,-7.7698 7.0286,-12.853 -0.82592,-4.6888 -4.0455,-8.4308 -8.4148,-9.7804 -6.983,-2.1568 -14.269,2.2939 -15.558,9.5032 -1.0478,5.8633 2.3432,11.571 8.0784,13.598 1.2817,0.45295 2.1059,0.54476 4.303,0.47938 2.3937,-0.0712 2.9375,-0.18417 4.5622,-0.94747 z"
id="path8"
inkscape:connector-curvature="0"
style="fill:#3571a3" />
</g>
</svg>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment