224 lines
5.5 KiB
Plaintext
224 lines
5.5 KiB
Plaintext
|
{
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"# Wprowadzenie do programowania w Pythonie\n",
|
|||
|
" \n",
|
|||
|
"## 19 listopada 2017\n",
|
|||
|
" \n",
|
|||
|
"### Tomasz Dwojak"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
" * Tomasz Dwojak\n",
|
|||
|
" * Doktorant UAM\n",
|
|||
|
" * Zainteresowania naukowe: Machine Translation\n",
|
|||
|
" * <t.dwojak@amu.edu.pl>\n",
|
|||
|
" * Pokój: B2-36\n",
|
|||
|
" * Prawie 10-letnia przygoda z Pythonem"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Warunki zaliczenia\n",
|
|||
|
" * Od tej edycji zajęcia z Pythona są osobnym przedmiotem.\n",
|
|||
|
" * Ocena na podstawie zadań domowych.\n",
|
|||
|
" * Termin na zadania domowe to prawie 2 tygodnie.\n",
|
|||
|
" * Więcej na drugiej godzinie zajęć."
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Ramowy plan zajęć\n",
|
|||
|
" * Dwie części: podstawy Pythona i analiza danych w Pythonie"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Przydatne zasoby\n",
|
|||
|
" * [Zanurkuj w Pythonie](https://upload.wikimedia.org/wikibooks/pl/5/5e/Zanurkuj_w_Pythonie.pdf),\n",
|
|||
|
" * [Kurs Pythona na DataCamp](https://campus.datacamp.com/courses/intro-to-python-for-data-science),\n",
|
|||
|
" * [Kursy na Courserze](https://www.coursera.org/courses?_facet_changed_=true&languages=en&primaryLanguages=en&query=python)\n",
|
|||
|
" * [Kurs na edX: Introduction to Python for Data Science (start 7-06-16]](https://www.edx.org/course/introduction-python-data-science-microsoft-dat208x-1)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Środowisko pracy\n",
|
|||
|
" * Python 3,\n",
|
|||
|
" * narzędzia: PyCharm + Git\n",
|
|||
|
" * Wszystko na wiki: https://git.wmi.amu.edu.pl/tdwojak/Python2017/wiki"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Dlaczego Python?"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "fragment"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
" * język programowania dla wszystkich.\n",
|
|||
|
" * posiada ogromną liczbę [modułów](https://pypi.python.org/pypi) (80.000), które ułatwiają pracę;\n",
|
|||
|
" * Aktualnie zajmuje 4 miejsce pod względem popularności [(TIOBE Index)](http://www.tiobe.com/tiobe_index);\n",
|
|||
|
" * Różne wersje: Python, Cython (C), Jython (Java), IronPython (C#).\n",
|
|||
|
" \n",
|
|||
|
" Motywacje zaczerpnięte m.in. z [5 Reasons why Python is Powerful Enough for Google](https://www.codefellows.org/blog/5-reasons-why-python-is-powerful-enough-for-google)."
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Jak podłączyć się z wydziałowym linuksem?"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "fragment"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
" * Opis z [strony laboratoriów](https://laboratoria.wmi.amu.edu.pl/LTS).\n",
|
|||
|
" * Pobieramy [x2go-client](http://wiki.x2go.org/doku.php/download:start) i instalujemy. \n",
|
|||
|
" * Tworzymy nową sesję i podajemy następujące dane:\n",
|
|||
|
" * Host: x2go.wmi.amu.edu.pl,\n",
|
|||
|
" * login: jak w D1,\n",
|
|||
|
" * sestion type: Wybieramy *Custom desktop* i spisujemy obok: ```usr/bin/mate-session```.\n",
|
|||
|
"Dokładny opis na stronie [laboratorów](https://laboratoria.wmi.amu.edu.pl/LTS)\n",
|
|||
|
" \n",
|
|||
|
" \n",
|
|||
|
" "
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Jak uruchomić IPythona?\n",
|
|||
|
" * Uruchamiamy **MATE Terminal**,\n",
|
|||
|
" * wpisujemy ```ipython notebook```.\n",
|
|||
|
" * Po chwili uruchomi się przeglądarka internetowa. Przechodzimy do katalogu, gdzie mamy nasze arkusze.\n",
|
|||
|
" \n",
|
|||
|
" "
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": null,
|
|||
|
"metadata": {
|
|||
|
"collapsed": true,
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "skip"
|
|||
|
}
|
|||
|
},
|
|||
|
"outputs": [],
|
|||
|
"source": []
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"slideshow": {
|
|||
|
"slide_type": "slide"
|
|||
|
}
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"## Uwagi na temat IPythona\n",
|
|||
|
" * Python nie wymaga żadnego wielkiego IDE...\n",
|
|||
|
" * Na zajęciach będziemy korzystać z IPythona - interaktywnego interpretera\n",
|
|||
|
" * Arkusz IPythona składa się z komórek, do których wpisujemy kod naszego programy.\n",
|
|||
|
" * Aby uruchomić kod należy wcisnąć \"Play\", ale wcisnąć kombinacje klawiszy: ctrl+enter lub shift+enter"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": null,
|
|||
|
"metadata": {
|
|||
|
"collapsed": true
|
|||
|
},
|
|||
|
"outputs": [],
|
|||
|
"source": []
|
|||
|
}
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"celltoolbar": "Slideshow",
|
|||
|
"kernelspec": {
|
|||
|
"display_name": "Python 3",
|
|||
|
"language": "python",
|
|||
|
"name": "python3"
|
|||
|
},
|
|||
|
"language_info": {
|
|||
|
"codemirror_mode": {
|
|||
|
"name": "ipython",
|
|||
|
"version": 3
|
|||
|
},
|
|||
|
"file_extension": ".py",
|
|||
|
"mimetype": "text/x-python",
|
|||
|
"name": "python",
|
|||
|
"nbconvert_exporter": "python",
|
|||
|
"pygments_lexer": "ipython3",
|
|||
|
"version": "3.6.3"
|
|||
|
}
|
|||
|
},
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 1
|
|||
|
}
|