diff --git a/lessons/python/01-numpy.ipynb b/lessons/python/01-numpy.ipynb index 76d0caa..e77fe53 100644 --- a/lessons/python/01-numpy.ipynb +++ b/lessons/python/01-numpy.ipynb @@ -779,8 +779,8 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import matplotlib.pyplot as plt\n", + "import numpy as np\n", "\n", "topo = np.loadtxt(\"data/topo.asc\", delimiter=\",\")\n", "\n", diff --git a/lessons/python/02-lists.ipynb b/lessons/python/02-lists.ipynb index fe0e13b..118dabe 100644 --- a/lessons/python/02-lists.ipynb +++ b/lessons/python/02-lists.ipynb @@ -189,13 +189,6 @@ "~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/lessons/python/03-scripts.ipynb b/lessons/python/03-scripts.ipynb index fa62138..9d5d2dc 100644 --- a/lessons/python/03-scripts.ipynb +++ b/lessons/python/03-scripts.ipynb @@ -33,8 +33,8 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import matplotlib.pyplot as plt\n", + "import numpy as np\n", "\n", "%matplotlib inline\n", "\n", @@ -49,13 +49,6 @@ "plt.show()" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -146,8 +139,8 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", "import matplotlib.pyplot as plt\n", + "import numpy as np\n", "\n", "# get_ipython().magic(u'matplotlib inline')\n", "\n", @@ -243,13 +236,6 @@ "## Takehome (2)\n", "Try this on the terminal in the JupyterHub. " ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/lessons/python/05 Models Part 1 (Diffusion).ipynb b/lessons/python/05 Models Part 1 (Diffusion).ipynb index 3477704..de787fc 100644 --- a/lessons/python/05 Models Part 1 (Diffusion).ipynb +++ b/lessons/python/05 Models Part 1 (Diffusion).ipynb @@ -79,10 +79,11 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy as np\n", - "import matplotlib.pyplot as plt\n", "import random\n", - "import time" + "import time\n", + "\n", + "import matplotlib.pyplot as plt\n", + "import numpy as np" ] }, { diff --git a/lessons/python/06 Models Part 2 (Advection).ipynb b/lessons/python/06 Models Part 2 (Advection).ipynb index 66b86eb..9ce07c9 100644 --- a/lessons/python/06 Models Part 2 (Advection).ipynb +++ b/lessons/python/06 Models Part 2 (Advection).ipynb @@ -178,13 +178,6 @@ "~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -192,13 +185,6 @@ "Now, set the wind speed $v$ to -10 m/s and calculate the advection equation for negative velocities using Eq. 4. Copy paste your previous solution and add the negative component to it. Do not forget to reset the Temperature array before you start. " ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -206,13 +192,6 @@ "Can you find an analytical solution for this problem? Implement eq. 2. You need just one line of code (HINT use the `np.mod` statement). Plot and compare with the numerical solution. What is going on here. What can we do to resolve this issue? " ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -241,13 +220,6 @@ "Enter the parameter values and initialize model variables: " ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -287,13 +259,6 @@ "~~~\n" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/lessons/python/07-func.ipynb b/lessons/python/07-func.ipynb index 385ef72..2fa23a8 100644 --- a/lessons/python/07-func.ipynb +++ b/lessons/python/07-func.ipynb @@ -53,8 +53,8 @@ "metadata": {}, "outputs": [], "source": [ - "import numpy\n", - "import matplotlib.pyplot" + "import matplotlib.pyplot\n", + "import numpy" ] }, { @@ -516,13 +516,6 @@ " ~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -671,13 +664,6 @@ " ~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -712,13 +698,6 @@ " ~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -740,13 +719,6 @@ " ~~~" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -759,13 +731,6 @@ " then the replacement for a value $v$ should be $(v-L) / (H-L)$.)" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -780,13 +745,6 @@ " " ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -799,13 +757,6 @@ " do the two functions always behave the same way?" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -829,20 +780,6 @@ " print(k)\n", " ~~~" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/lessons/python/08-OO.ipynb b/lessons/python/08-OO.ipynb index e6fb00c..8a4c18f 100644 --- a/lessons/python/08-OO.ipynb +++ b/lessons/python/08-OO.ipynb @@ -95,13 +95,6 @@ "# Document self" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -163,13 +156,6 @@ "source": [ "# check the type of v3" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/lessons/python/index.ipynb b/lessons/python/index.ipynb index b230392..c0c2699 100644 --- a/lessons/python/index.ipynb +++ b/lessons/python/index.ipynb @@ -93,13 +93,6 @@ "* [Reference](reference.html)\n", "* [csdms-software-carpentry](https://github.com/csdms/csdms-carpentry)\n" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {