From 8f778b8800dbb1a54f4c45c2c0ad9452ffdcc654 Mon Sep 17 00:00:00 2001 From: Mihai <mihai.lefter@gmail.com> Date: Sat, 16 Sep 2017 13:34:35 +0200 Subject: [PATCH] Revised welcome lecture. --- images/python_logo.svg | 65 ++++++++++++++++++++ introduction/01_welcome.ipynb | 109 +++++++++++++++++++++++----------- 2 files changed, 139 insertions(+), 35 deletions(-) create mode 100644 images/python_logo.svg diff --git a/images/python_logo.svg b/images/python_logo.svg new file mode 100644 index 0000000..2f45aad --- /dev/null +++ b/images/python_logo.svg @@ -0,0 +1,65 @@ +<?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> diff --git a/introduction/01_welcome.ipynb b/introduction/01_welcome.ipynb index 4239ccc..6d6a87c 100644 --- a/introduction/01_welcome.ipynb +++ b/introduction/01_welcome.ipynb @@ -12,7 +12,8 @@ "===\n", "\n", "<br>\n", - "\n" + "\n", + "<img src=\"../images/python_logo.svg\" alt=\"Python Logo\">" ] }, { @@ -27,12 +28,36 @@ "===\n", "\n", "* Aimed at PhD students, Postdocs, researchers, analysts, ...\n", - "* Programming as a tool to do your research.\n", - "* Slightly focussed on bioinformatics.\n", + "* Focus on:\n", + " - Basic understanding of Python.\n", + " - Programming as a tool to do your research.\n", + " - Slightly biased on bioinformatics.\n", + "\n", "\n", "**Note:** This is its third session." ] }, + { + "cell_type": "markdown", + "metadata": { + "slideshow": { + "slide_type": "slide" + } + }, + "source": [ + "Hands on!\n", + "===\n", + "\n", + "**Programming is fun!**\n", + "* You only learn programming by doing it.\n", + "* Lecture format:\n", + " - Blended teaching + exercising.\n", + "* Have your laptop open during the lessons.\n", + "* Repeat the code from the slides, play around with it.\n", + "* Do the session exercises.\n", + "* There will be a few assignments to submit." + ] + }, { "cell_type": "markdown", "metadata": { @@ -75,24 +100,37 @@ "Program\n", "===\n", "\n", - "| Day | Time | Lesson | Teacher | \n", - "|-----------------|-------|------------------------------------ |----------|\n", - "| Monday, 18/9 | 9-10 | Welcome, Introduction to Python (1) | Mihai | \n", - "| | 10-11 | Introduction to Python (2) | Jeroen | \n", - "| | 11-12 | Introduction to Python (3) | Mihai | \n", - "| | 12-13 | Practical help | | \n", - "| Tuesday, 19/9 | 9-10 | Assignments review | |\n", - "| | 10-11 | More Python Goodness (1) | Mihai | \n", - "| | 11-12 | More Python Goodness (2) | Mihai | \n", - "| | 12-13 | IPython Notebook | Mark | \n", - "| Wednesday, 20/9 | 9-10 | Assignments review | | \n", - "| | 10-11 | Data manipulation (NumPy, Pandas) | Mark | \n", - "| | 11-12 | Data visualisation (1) | Guy | \n", - "| | 12-13 | Data visualisation (2) | Guy | \n", - "| Thursday, 21/9 | 9-10 | Assignments review | | \n", - "| | 10-11 | Object-oriented programming | Jonathan | \n", - "| | 11-12 | Biopython | Guy | \n", - "| | 12-13 | Putting everything together | Jeroen |\n", + "| Day | Time | Lesson | Teacher | \n", + "|-------------------|-------|------------------------------------ |----------|\n", + "| **Monday, 18/9** | 9 - 9:30 | Welcome, Setup | Mihai | \n", + "| | 9:30 - 10:30 | Introduction to Python (1) | Mihai |\n", + "| | 10:30 - 11:30 | Introduction to Python (2) | Jeroen | \n", + "| | 11:30 - 12:30 | Introduction to Python (3) | Mihai | \n", + "| | 12:30 - 13:00 | Practical help | | \n", + "| **Tuesday, 19/9** | 9-10 | Assignments review | |\n", + "| | 10-11 | More Python Goodness (1) | Mihai | \n", + "| | 11-12 | More Python Goodness (2) | Mihai | \n", + "| | 12-13 | IPython Notebook | Mark | " + ] + }, + { + "cell_type": "markdown", + "metadata": { + "slideshow": { + "slide_type": "subslide" + } + }, + "source": [ + "| Day | Time | Lesson | Teacher | \n", + "|---------------------|-------|------------------------------------ |----------|\n", + "| **Wednesday, 20/9** | 9-10 | Assignments review | | \n", + "| | 10-11 | Data manipulation (NumPy, Pandas) | Mark | \n", + "| | 11-12 | Data visualisation (1) | Guy | \n", + "| | 12-13 | Data visualisation (2) | Guy | \n", + "| **Thursday, 21/9** | 9-10 | Assignments review | | \n", + "| | 10-11 | Object-oriented programming | Jonathan | \n", + "| | 11-12 | Biopython | Guy | \n", + "| | 12-13 | Putting everything together | Jeroen |\n", "\n", "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)" ] @@ -108,12 +146,13 @@ "Software requirements\n", "===\n", "\n", - "* Anaconda\n", - " * Python 2.7\n", - " * NumPy, matplotlib, Biopython\n", + "* Anaconda:\n", + " * Python 2.7\n", + " * Comes with all that's required:\n", + " - NumPy, matplotlib, Biopython\n", + " * [Installation instructions](https://docs.anaconda.com/anaconda/install/). \n", "* Git\n", - "\n", - "Anaconda installation instructions [here](https://docs.anaconda.com/anaconda/install/)." + "\n" ] }, { @@ -124,15 +163,14 @@ } }, "source": [ - "Exercises\n", + "Assignments\n", "===\n", "\n", - "You only learn programming by doing it.\n", - "\n", - "* Have your laptop open during the lessons.\n", - "* Repeat the code from the slides, play around with it.\n", - "* Do the exercises.\n", - "* There will be a few assignments to submit." + "* We make use of GitHub Classroom:\n", + " - GitHub account required.\n", + " - Link with assignment repository.\n", + " - Own forked repository to work on - automated by GitHub.\n", + " - Direct file upload to repository is possible." ] }, { @@ -152,7 +190,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": { "slideshow": { "slide_type": "skip" @@ -191,7 +229,7 @@ "<IPython.core.display.HTML object>" ] }, - "execution_count": 3, + "execution_count": 1, "metadata": {}, "output_type": "execute_result" } @@ -217,6 +255,7 @@ } ], "metadata": { + "celltoolbar": "Slideshow", "kernelspec": { "display_name": "Python 2", "language": "python", -- GitLab