Skip to content

Commit

Permalink
Delete metadata from notebooks (#12)
Browse files Browse the repository at this point in the history
* update notebooks

* remove metadata from cells during tests

* update content and contextily installation

* add descartes

* typo

* update installation manual

* update gitignore

* move groundwater model directory

* update gitignore

* restructure and update practical examples

* last update for now

* add cbs_data analyse

* update twitter analysis

* reinstate some files to be ignored

* remove error in camel_bananas function

* update camel problem

* modify text

* remove notebook metadata as well (and not only cell metadata)

* minor changes

* remove all metadata from notebooks
  • Loading branch information
OnnoEbbens authored Nov 24, 2020
1 parent 35cfa26 commit 682b4fa
Show file tree
Hide file tree
Showing 79 changed files with 318 additions and 407 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -871,11 +871,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -897,11 +897,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
280 changes: 234 additions & 46 deletions Exercise_notebooks/Basic/basic4_for_and_if/py_exploratory_comp_4.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
18 changes: 8 additions & 10 deletions Exercise_notebooks/On_topic/02_matplotlib/01_matplotlib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"metadata": {},
"source": [
"## 2. [Basic plot](#top)<a id=\"2\"></a>\n",
"A basic plot can be made with the `plt.plot()` function. This function returns a `matplotlib.lines.Line2D` object."
"A basic plot can be made with the `plt.plot()` function. This function returns a `matplotlib.lines.Line2D` object as can be seen in the example below."
]
},
{
Expand All @@ -72,7 +72,7 @@
"metadata": {},
"outputs": [],
"source": [
"l, = plt.plot([1,2,3],[3,7,5])"
"plt.plot([1,2,3],[3,7,5])"
]
},
{
Expand All @@ -91,10 +91,12 @@
"outputs": [],
"source": [
"# method 1\n",
"\n",
"fig, ax = plt.subplots()\n",
"\n",
"x = np.linspace(0, 10, 500)\n",
"dashes = [10, 5, 100, 5] # 10 points on, 5 off, 100 on, 5 off\n",
"\n",
"fig, ax = plt.subplots()\n",
"line1, = ax.plot(x, np.sin(x), '--', linewidth=2,\n",
" label='Dashes set retroactively')\n",
"line1.set_dashes(dashes)\n",
Expand Down Expand Up @@ -140,11 +142,11 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Maybe you ask yourself: What is the difference between these methods? Which one should I use?\n",
"Maybe you ask yourself: Why are there different methods that do the same thing? Which one should I use?\n",
"\n",
"The first method (`fig, ax = plt.subplots()`) is an **explicit** method. You create a figure with axes explicitly and then you add the plot to the axes. The second method (with `plt.plot()`) is an **implicit** method. When you call `plt.plot()` is looks for an active figure and adds the plot to this figure. If there is no active figure it will create one.\n",
"\n",
"The image below shows the different building elements of a plot figure. Notice the difference between 'axes' and 'axis'. One figure can have multiple plots (or axes) and axes can have multiple axis (usually an x-axis and an y-axis).\n",
"The image below shows the different building elements of a plot figure. Notice the difference between 'axes' and 'axis'. One figure can have multiple axes and axes can have multiple axis (usually an x-axis and an y-axis).\n",
"\n",
"<IMG SRC='figures\\figures_axes.png' align='center'>"
]
Expand Down Expand Up @@ -237,11 +239,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Original file line number Diff line number Diff line change
Expand Up @@ -638,11 +638,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
6 changes: 1 addition & 5 deletions Exercise_notebooks/On_topic/03_for_loops/02_for_loops.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
6 changes: 1 addition & 5 deletions Exercise_notebooks/On_topic/05_Numpy/01-numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -885,11 +885,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -964,11 +964,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
6 changes: 1 addition & 5 deletions Exercise_notebooks/On_topic/06_Functions/01_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,7 @@
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
6 changes: 1 addition & 5 deletions Exercise_notebooks/On_topic/08_GIS/GIS_pyshp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
6 changes: 1 addition & 5 deletions Exercise_notebooks/On_topic/08_GIS/Geopandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 1
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,7 @@
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"metadata": {},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit 682b4fa

Please sign in to comment.