Skip to content

Commit

Permalink
slides 1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Sep 28, 2018
1 parent e6c5f9f commit a3f34a2
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 29 deletions.
51 changes: 23 additions & 28 deletions exercises/introduction/introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,6 @@
"\n",
"In this practical we will set up a working Python3 development environment and will start familiarizing a bit with Python.\n",
"\n",
"## Slides\n",
"\n",
"The slides of the introduction can be found here: [Intro](docs/ScientificProgrammingPractical.pdf)\n",
"\n",
"## Setting up the environment\n",
"\n",
"We will need to install several pieces of software to get a working programming environment suitable for this practical. In this section we will install everything that we are going to need in the next few weeks. \n",
Expand All @@ -438,23 +434,25 @@
"\n",
"1. The Python interpreter. In this course we will use python version 3.x. A lot of information on python can be found on the [python web page](https://www.python.org/). Open a terminal and try typing in:\n",
"\n",
" ```python3```\n",
" \n",
" if you get an error like \"python3 command not found\" you need to install it, while if you get something like this:\n",
" \n",
" ![](img/console.png)\n",
" \n",
" you are already sorted, just type Ctrl-D to exit.\n",
"```\n",
"python3\n",
"```\n",
"\n",
" Installation on a debian-like linux distribution (e.g. Ubuntu) can be done by typing the following commands on a terminal:\n",
"if you get an error like \"python3 command not found\" you need to install it, while if you get something like this:\n",
"\n",
" ```sudo apt-get update```\n",
" \n",
" ```sudo apt-get install python3```\n",
"![](img/console.png)\n",
"\n",
" While **if you are using Fedora** you can use:\n",
" \n",
" ```sudo dnf install python3```\n",
"you are already sorted, just type Ctrl-D to exit.\n",
"\n",
"Installation on a debian-like linux distribution (e.g. Ubuntu) can be done by typing the following commands on a terminal:\n",
"\n",
"```sudo apt-get update```\n",
"\n",
"```sudo apt-get install python3```\n",
"\n",
"While **if you are using Fedora** you can use:\n",
"\n",
"```sudo dnf install python3```\n",
" \n",
"\n",
"2. Install now the package manager pip, which is a very convenient tool to install python packages, with the following command (**on Fedora the command above should have already installed it**):\n",
Expand All @@ -474,12 +472,9 @@
"\n",
"#### Windows/Mac installation \n",
"\n",
"1. The python interpreter. In this course we will use python version 3.x. A lot of information on python can be found on the [python web page](https://www.python.org/). Installers for Windows and Mac can be downloaded from [this page](https://www.python.org/). Click on Download Python 3.6.x. **When executing the installer, please remember to flag \"Add Python 3.6.2 to PATH\" and then click on Install now (see picture below)**. \n",
"\n",
" ![](img/installnow.png)\n",
"\n",
"1. Install [Anaconda for Python 3.6](https://www.anaconda.com/download/)\n",
"\n",
"2. Install now the Integrated Development Environment (IDE) that we will be using. This is called Visual Studio Code and is available for all platforms. You can read about it [here](https://code.visualstudio.com/). Downloads for all platforms can be found [here](https://code.visualstudio.com/Download).\n",
"2. Install now the Integrated Development Environment (IDE) that we will be using. This is called Visual Studio Code and is available for all platforms. You can read about it [here](https://code.visualstudio.com/). Downloads for all platforms can be found [here](https://code.visualstudio.com/Download) (anaconda installer will ask you to install also visual studio code, so accept the kind offer)\n",
"\n",
"\n",
"## The console\n",
Expand Down Expand Up @@ -916,7 +911,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -954,7 +949,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -988,7 +983,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1020,7 +1015,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1056,7 +1051,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down
50 changes: 49 additions & 1 deletion index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
"\n",
"Website for Scientific Programming Lab, Data Science master, University of Trento\n",
"\n",
"Teaching assistant: David Leoni david.leoni@unitn.it \n",
"Teaching assistant: David Leoni david.leoni@unitn.it website: [davidleoni.it](http://www.davidleoni.it)\n",
"\n",
"\n",
"This work is licensed under a Creative Commons Attribution 4.0 License [CC-BY](https://creativecommons.org/licenses/by/4.0/)\n",
Expand Down Expand Up @@ -486,6 +486,10 @@
"* [The course book 'Problem Solving with Algorithms and Data Structures using Python'](http://interactivepython.org/runestone/static/pythonds/index.html)\n",
"\n",
"So if you need to look up some Python function, please start today learning how to search documentation on Python website.\n",
"\n",
"**Make practice with the lab computers !!** \n",
"\n",
"Exam will be in Linux Ubuntu environment - so learn how to browse folders there and also how to type with noisy lab keyboards :-)\n",
"\n"
]
},
Expand All @@ -498,6 +502,50 @@
"See [Past exams page](past-exams.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Slides\n",
"\n",
"### Lesson 1\n",
"\n",
"Friday 28 Sep 2018\n",
"\n",
"**What I expect**\n",
"\n",
"- if you don't program in Python, you don't learn Python\n",
"- you don't learn Python if you don't program in Python\n",
"- to be a successful data scientist, you must know programming\n",
"- **Exercise**: now put the right priorities in your TODO list ;-)\n",
"\n",
"**Course contents:**\n",
"\n",
"- matrices, matrices, matrices\n",
"- ok, also something else \n",
"\n",
"**First course part - python intro:**\n",
"\n",
"- getting hands dirty\n",
"- python basics, libs (i.e. pandas)\n",
"- data cleaning\n",
"- some analyitics\n",
"- plus: some software engineering wisdom\n",
"\n",
"Second course part - algorithms\n",
"\n",
"- Going from theory taught by Prof. Alberto Montresor to Python 3 implementation\n",
"- Hands-on approach\n",
" - Performance considerations\n",
" - Focus on correct code\n",
" - Few Python functions\n",
" - Will follow last year algorithms lab\n",
"\n",
"Let's start: \n",
"\n",
"[introduction exercises](exercises/introduction/introduction.ipynb)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit a3f34a2

Please sign in to comment.