Commit 0272f6c9 authored by Claas Faber's avatar Claas Faber

Merged two intro notebooks

parent 52a43e9d
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Links\n",
"* A gallery of interesting Jupyter Notebooks : https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks \n",
"* Can't stop using it… or Python for Excel : https://www.xlwings.org/ \n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Install requirements\n",
"* anaconda - is installed\n",
"* git - is installed\n",
"\n"
]
}
],
"metadata": {
"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.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"hello world\n"
]
}
],
"source": [
"print('hello world')"
]
},
{
"cell_type": "markdown",
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"# Example Notebook\n",
"this is an example\n",
"- python code\n",
"- markdown\n",
"- cool stuff\n",
"- also [links](https://www.google.com)\n",
"\n",
"Execute shell commands:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"total 128\r\n",
"drwxr-xr-x 13 cfaber staff 442 Apr 6 11:23 \u001b[34m.\u001b[m\u001b[m\r\n",
"drwxr-xr-x 7 cfaber staff 238 Apr 6 10:20 \u001b[34m..\u001b[m\u001b[m\r\n",
"drwxr-xr-x 15 cfaber staff 510 Apr 6 10:37 \u001b[34m.git\u001b[m\u001b[m\r\n",
"drwxr-xr-x 3 cfaber staff 102 Apr 6 11:21 \u001b[34m.ipynb_checkpoints\u001b[m\u001b[m\r\n",
"-rw-r--r-- 1 cfaber staff 907 Apr 6 11:23 Untitled.ipynb\r\n",
"-rw-r--r-- 1 cfaber staff 13935 Apr 6 10:20 boknis.ipynb\r\n",
"-rw-r--r-- 1 cfaber staff 12369 Apr 6 10:20 boknis_start.ipynb\r\n",
"drwxr-xr-x 4 cfaber staff 136 Apr 6 10:20 \u001b[34mdata\u001b[m\u001b[m\r\n",
"-rw-r--r-- 1 cfaber staff 227 Apr 6 10:20 dm-tools_py3.yml\r\n",
"-rw-r--r-- 1 cfaber staff 940 Apr 6 10:20 jupyter-notebook-basics.ipynb\r\n",
"-rw-r--r-- 1 cfaber staff 7725 Apr 6 10:20 jupyter-notebook-for-OPeNDAP-data-access.ipynb\r\n",
"-rw-r--r-- 1 cfaber staff 5449 Apr 6 10:20 sql_db.ipynb\r\n",
"-rw-r--r-- 1 cfaber staff 10 Apr 6 10:37 testfile\r\n"
]
}
],
"source": [
"!ls -la"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can run any software that is available through the command line, e.g. git:"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"On branch master\r\n",
"Your branch is ahead of 'origin/master' by 2 commits.\r\n",
" (use \"git push\" to publish your local commits)\r\n",
"Changes not staged for commit:\r\n",
" (use \"git add/rm <file>...\" to update what will be committed)\r\n",
" (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n",
"\r\n",
"\t\u001b[31mdeleted: test.txt\u001b[m\r\n",
"\r\n",
"Untracked files:\r\n",
" (use \"git add <file>...\" to include in what will be committed)\r\n",
"\r\n",
"\t\u001b[31m.ipynb_checkpoints/\u001b[m\r\n",
"\t\u001b[31mUntitled.ipynb\u001b[m\r\n",
"\r\n",
"no changes added to commit (use \"git add\" and/or \"git commit -a\")\r\n"
]
}
],
"source": [
"!git status"
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"deletable": true,
"editable": true
},
"source": [
"## Links\n",
"* A gallery of interesting Jupyter Notebooks : https://github.com/jupyter/jupyter/wiki/A-gallery-of-interesting-Jupyter-Notebooks \n",
"* Can't stop using it… or Python for Excel : https://www.xlwings.org/ \n",
"\n",
"\n",
"**Remember**: you can save Notebooks as static documents, e.g. pdf or html!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"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.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment