From: Jon Speicher Date: Sun, 28 Jul 2013 00:26:33 +0000 (-0400) Subject: Clear results in base notebook X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=17bb08521fc0c025d239615fffaaad35276cfd47;p=swc-testing-nose.git Clear results in base notebook --- diff --git a/python/sw_engineering/SoftwareEngineering.ipynb b/python/sw_engineering/SoftwareEngineering.ipynb index b2ca6ef..c587377 100644 --- a/python/sw_engineering/SoftwareEngineering.ipynb +++ b/python/sw_engineering/SoftwareEngineering.ipynb @@ -117,8 +117,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 4 + "outputs": [] }, { "cell_type": "markdown", @@ -135,16 +134,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "117" - ] - } - ], - "prompt_number": 5 + "outputs": [] }, { "cell_type": "markdown", @@ -196,20 +186,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2011-04-22 21:06 Grizzly 36\r\n", - "2011-04-23 14:12 Elk 25\r\n", - "2011-04-23 10:24 Elk 26\r\n", - "2011-04-23 20:08 Wolverine 31\r\n", - "2011-04-23 18:46 Muskox 20\r\n" - ] - } - ], - "prompt_number": 6 + "outputs": [] }, { "cell_type": "markdown", @@ -260,8 +237,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 7 + "outputs": [] }, { "cell_type": "markdown", @@ -278,20 +254,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2011-04-22 21:06 Grizzly 36\r\n", - "2011-04-23 14:12 Elk 25\r\n", - "2011-04-23 10:24 Elk 26\r\n", - "2011-04-23 20:08 Wolverine 31\r\n", - "2011-04-23 18:46 Muskox 20\r\n" - ] - } - ], - "prompt_number": 8 + "outputs": [] }, { "cell_type": "code", @@ -301,19 +264,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "(['2011-04-22', '2011-04-23', '2011-04-23', '2011-04-23', '2011-04-23'],\n", - " ['21:06', '14:12', '10:24', '20:08', '18:46'],\n", - " ['Grizzly', 'Elk', 'Elk', 'Wolverine', 'Muskox'],\n", - " [36, 25, 26, 31, 20])" - ] - } - ], - "prompt_number": 9 + "outputs": [] }, { "cell_type": "markdown", @@ -345,8 +296,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 10 + "outputs": [] }, { "cell_type": "markdown", @@ -363,16 +313,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 11, - "text": [ - "117" - ] - } - ], - "prompt_number": 11 + "outputs": [] }, { "cell_type": "markdown", @@ -418,16 +359,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "Looks good!\n" - ] - } - ], - "prompt_number": 12 + "outputs": [] }, { "cell_type": "markdown", @@ -455,8 +387,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 13 + "outputs": [] }, { "cell_type": "markdown", @@ -480,8 +411,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 14 + "outputs": [] }, { "cell_type": "markdown", @@ -504,20 +434,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "ename": "AssertionError", - "evalue": "2 + 2 didn't equal 4", - "output_type": "pyerr", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32massert\u001b[0m \u001b[0;36m4\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0madd_two_plus_two\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"2 + 2 didn't equal 4\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mtest_add_two_plus_two_equals_four\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;32m\u001b[0m in \u001b[0;36mtest_add_two_plus_two_equals_four\u001b[0;34m()\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mtest_add_two_plus_two_equals_four\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 5\u001b[0;31m \u001b[0;32massert\u001b[0m \u001b[0;36m4\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0madd_two_plus_two\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"2 + 2 didn't equal 4\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[0mtest_add_two_plus_two_equals_four\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", - "\u001b[0;31mAssertionError\u001b[0m: 2 + 2 didn't equal 4" - ] - } - ], - "prompt_number": 15 + "outputs": [] }, { "cell_type": "markdown", @@ -622,8 +539,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 16 + "outputs": [] }, { "cell_type": "code", @@ -633,228 +549,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5e87717b84c447ad93143bde900e1715 = $(\"#ipython_nose_5e87717b84c447ad93143bde900e1715\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5e87717b84c447ad93143bde900e1715.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5e87717b84c447ad93143bde900e1715.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5e87717b84c447ad93143bde900e1715.append($(\"F\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_5e87717b84c447ad93143bde900e1715;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 1/3 tests passed; 2 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n",
-        "    func(*arg, **kw)\n",
-        "  File \"<ipython-input-2-bc417f346267>\", line 5, in test_mean_of_empty_function_raises_value_error\n",
-        "    mean([])\n",
-        "NameError: global name 'mean' is not defined\n",
-        "
\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_add_two_plus_two_equals_four\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"<ipython-input-15-2d797333ff4c>\", line 5, in test_add_two_plus_two_equals_four\n",
-        "    assert 4 == add_two_plus_two(), \"2 + 2 didn't equal 4\"\n",
-        "AssertionError: 2 + 2 didn't equal 4\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 18, - "text": [ - "1/3 tests passed; 2 failed\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n", - " func(*arg, **kw)\n", - " File \"\", line 5, in test_mean_of_empty_function_raises_value_error\n", - " mean([])\n", - "NameError: global name 'mean' is not defined\n", - "\n", - "========\n", - "__main__.test_add_two_plus_two_equals_four\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"\", line 5, in test_add_two_plus_two_equals_four\n", - " assert 4 == add_two_plus_two(), \"2 + 2 didn't equal 4\"\n", - "AssertionError: 2 + 2 didn't equal 4\n", - "\n" - ] - } - ], - "prompt_number": 18 + "outputs": [] }, { "cell_type": "markdown", @@ -871,20 +566,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "........\r\n", - "----------------------------------------------------------------------\r\n", - "Ran 8 tests in 0.004s\r\n", - "\r\n", - "OK\r\n" - ] - } - ], - "prompt_number": 19 + "outputs": [] }, { "cell_type": "markdown", @@ -912,8 +594,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 20 + "outputs": [] }, { "cell_type": "code", @@ -923,197 +604,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_510c086cad7b476795575f3b317d1255 = $(\"#ipython_nose_510c086cad7b476795575f3b317d1255\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_510c086cad7b476795575f3b317d1255.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_510c086cad7b476795575f3b317d1255.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_510c086cad7b476795575f3b317d1255.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_510c086cad7b476795575f3b317d1255;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 2/3 tests passed; 1 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n",
-        "    func(*arg, **kw)\n",
-        "  File \"<ipython-input-2-bc417f346267>\", line 5, in test_mean_of_empty_function_raises_value_error\n",
-        "    mean([])\n",
-        "NameError: global name 'mean' is not defined\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 21, - "text": [ - "2/3 tests passed; 1 failed\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n", - " func(*arg, **kw)\n", - " File \"\", line 5, in test_mean_of_empty_function_raises_value_error\n", - " mean([])\n", - "NameError: global name 'mean' is not defined\n", - "\n" - ] - } - ], - "prompt_number": 21 + "outputs": [] }, { "cell_type": "markdown", @@ -1153,8 +644,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 22 + "outputs": [] }, { "cell_type": "markdown", @@ -1175,234 +665,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2 = $(\"#ipython_nose_880d0b5c63014ac78937ccad69cf89d2\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_880d0b5c63014ac78937ccad69cf89d2;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 2/4 tests passed; 2 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_zero_is_zero\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"<ipython-input-22-ee2ab148c1b0>\", line 2, in test_mean_of_zero_is_zero\n",
-        "    assert 0 == mean([0])\n",
-        "NameError: global name 'mean' is not defined\n",
-        "
\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n",
-        "    func(*arg, **kw)\n",
-        "  File \"<ipython-input-2-bc417f346267>\", line 5, in test_mean_of_empty_function_raises_value_error\n",
-        "    mean([])\n",
-        "NameError: global name 'mean' is not defined\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 23, - "text": [ - "2/4 tests passed; 2 failed\n", - "========\n", - "__main__.test_mean_of_zero_is_zero\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"\", line 2, in test_mean_of_zero_is_zero\n", - " assert 0 == mean([0])\n", - "NameError: global name 'mean' is not defined\n", - "\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n", - " func(*arg, **kw)\n", - " File \"\", line 5, in test_mean_of_empty_function_raises_value_error\n", - " mean([])\n", - "NameError: global name 'mean' is not defined\n", - "\n" - ] - } - ], - "prompt_number": 23 + "outputs": [] }, { "cell_type": "code", @@ -1413,8 +676,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 24 + "outputs": [] }, { "cell_type": "code", @@ -1424,234 +686,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9 = $(\"#ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_c2735c7e3d0c4677b88a8a5cd4cdf4a9;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 2/4 tests passed; 2 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_zero_is_zero\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"<ipython-input-22-ee2ab148c1b0>\", line 2, in test_mean_of_zero_is_zero\n",
-        "    assert 0 == mean([0])\n",
-        "TypeError: mean() takes no arguments (1 given)\n",
-        "
\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n",
-        "    func(*arg, **kw)\n",
-        "  File \"<ipython-input-2-bc417f346267>\", line 5, in test_mean_of_empty_function_raises_value_error\n",
-        "    mean([])\n",
-        "TypeError: mean() takes no arguments (1 given)\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 25, - "text": [ - "2/4 tests passed; 2 failed\n", - "========\n", - "__main__.test_mean_of_zero_is_zero\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"\", line 2, in test_mean_of_zero_is_zero\n", - " assert 0 == mean([0])\n", - "TypeError: mean() takes no arguments (1 given)\n", - "\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n", - " func(*arg, **kw)\n", - " File \"\", line 5, in test_mean_of_empty_function_raises_value_error\n", - " mean([])\n", - "TypeError: mean() takes no arguments (1 given)\n", - "\n" - ] - } - ], - "prompt_number": 25 + "outputs": [] }, { "cell_type": "code", @@ -1662,8 +697,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 26 + "outputs": [] }, { "cell_type": "code", @@ -1673,227 +707,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_1e1bd17442294222a80f6cc462ac3176 = $(\"#ipython_nose_1e1bd17442294222a80f6cc462ac3176\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_1e1bd17442294222a80f6cc462ac3176.append($(\"F\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_1e1bd17442294222a80f6cc462ac3176.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_1e1bd17442294222a80f6cc462ac3176.append($(\"F\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_1e1bd17442294222a80f6cc462ac3176.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_1e1bd17442294222a80f6cc462ac3176;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 2/4 tests passed; 2 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_zero_is_zero\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"<ipython-input-22-ee2ab148c1b0>\", line 2, in test_mean_of_zero_is_zero\n",
-        "    assert 0 == mean([0])\n",
-        "AssertionError\n",
-        "
\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 67, in newfunc\n",
-        "    raise AssertionError(message)\n",
-        "AssertionError: test_mean_of_empty_function_raises_value_error() did not raise ValueError\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 27, - "text": [ - "2/4 tests passed; 2 failed\n", - "========\n", - "__main__.test_mean_of_zero_is_zero\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"\", line 2, in test_mean_of_zero_is_zero\n", - " assert 0 == mean([0])\n", - "AssertionError\n", - "\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 67, in newfunc\n", - " raise AssertionError(message)\n", - "AssertionError: test_mean_of_empty_function_raises_value_error() did not raise ValueError\n", - "\n" - ] - } - ], - "prompt_number": 27 + "outputs": [] }, { "cell_type": "code", @@ -1904,8 +718,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 28 + "outputs": [] }, { "cell_type": "code", @@ -1915,196 +728,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493 = $(\"#ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493.append($(\"F\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_fe9e7f6480d54f919bfa6edad2ce0493;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 3/4 tests passed; 1 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 67, in newfunc\n",
-        "    raise AssertionError(message)\n",
-        "AssertionError: test_mean_of_empty_function_raises_value_error() did not raise ValueError\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 29, - "text": [ - "3/4 tests passed; 1 failed\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 67, in newfunc\n", - " raise AssertionError(message)\n", - "AssertionError: test_mean_of_empty_function_raises_value_error() did not raise ValueError\n", - "\n" - ] - } - ], - "prompt_number": 29 + "outputs": [] }, { "cell_type": "markdown", @@ -2160,8 +784,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 30 + "outputs": [] }, { "cell_type": "markdown", @@ -2178,16 +801,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 31, - "text": [ - "0.0" - ] - } - ], - "prompt_number": 31 + "outputs": [] }, { "cell_type": "code", @@ -2197,16 +811,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 32, - "text": [ - "1.0" - ] - } - ], - "prompt_number": 32 + "outputs": [] }, { "cell_type": "code", @@ -2216,16 +821,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 33, - "text": [ - "3.0" - ] - } - ], - "prompt_number": 33 + "outputs": [] }, { "cell_type": "code", @@ -2235,16 +831,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "pyout", - "prompt_number": 34, - "text": [ - "4.566666666666666" - ] - } - ], - "prompt_number": 34 + "outputs": [] }, { "cell_type": "code", @@ -2254,20 +841,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "ename": "ZeroDivisionError", - "evalue": "float division by zero", - "output_type": "pyerr", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mmean\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;32m\u001b[0m in \u001b[0;36mmean\u001b[0;34m(numbers)\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mnumber\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mnumbers\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mtotal\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtotal\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0mnumber\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 6\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mtotal\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0mfloat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnumbers\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;31mZeroDivisionError\u001b[0m: float division by zero" - ] - } - ], - "prompt_number": 35 + "outputs": [] }, { "cell_type": "markdown", @@ -2294,8 +868,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 36 + "outputs": [] }, { "cell_type": "code", @@ -2305,210 +878,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab = $(\"#ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab.append($(\"E\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_5ceb566dc2db4a1cbddaa43327f83fab;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 3/4 tests passed; 1 failed\n", - "
\n", - " \n", - "
\n", - "
\n", - " failed: __main__.test_mean_of_empty_function_raises_value_error\n", - " [toggle traceback]\n", - "
\n", - "
Traceback (most recent call last):\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n",
-        "    testMethod()\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n",
-        "    self.test(*self.arg)\n",
-        "  File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n",
-        "    func(*arg, **kw)\n",
-        "  File \"<ipython-input-36-bc417f346267>\", line 5, in test_mean_of_empty_function_raises_value_error\n",
-        "    mean([])\n",
-        "  File \"<ipython-input-30-16ccb79ef6d8>\", line 6, in mean\n",
-        "    return total/float(len(numbers))\n",
-        "ZeroDivisionError: float division by zero\n",
-        "
\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 37, - "text": [ - "3/4 tests passed; 1 failed\n", - "========\n", - "__main__.test_mean_of_empty_function_raises_value_error\n", - "========\n", - "Traceback (most recent call last):\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/unittest/case.py\", line 331, in run\n", - " testMethod()\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\n", - " self.test(*self.arg)\n", - " File \"/Users/Jon/Applications/anaconda/lib/python2.7/site-packages/nose/tools/nontrivial.py\", line 60, in newfunc\n", - " func(*arg, **kw)\n", - " File \"\", line 5, in test_mean_of_empty_function_raises_value_error\n", - " mean([])\n", - " File \"\", line 6, in mean\n", - " return total/float(len(numbers))\n", - "ZeroDivisionError: float division by zero\n", - "\n" - ] - } - ], - "prompt_number": 37 + "outputs": [] }, { "cell_type": "code", @@ -2526,8 +896,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 39 + "outputs": [] }, { "cell_type": "code", @@ -2537,168 +906,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0 = $(\"#ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_cd36649ad3264c26a9a1ce96cf0984c0;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 4/4 tests passed\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 40, - "text": [ - "4/4 tests passed\n" - ] - } - ], - "prompt_number": 40 + "outputs": [] }, { "cell_type": "code", @@ -2708,20 +916,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "ename": "ValueError", - "evalue": "Empty list received by mean", - "output_type": "pyerr", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mmean\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;32m\u001b[0m in \u001b[0;36mmean\u001b[0;34m(numbers)\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0;34m'''Returns the mean of the provided list of numbers.'''\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnumbers\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"Empty list received by mean\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0mtotal\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0.0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", - "\u001b[0;31mValueError\u001b[0m: Empty list received by mean" - ] - } - ], - "prompt_number": 47 + "outputs": [] }, { "cell_type": "markdown", @@ -2802,8 +997,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 48 + "outputs": [] }, { "cell_type": "markdown", @@ -2820,20 +1014,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "2011-04-22 21:06 Grizzly 36\r\n", - "2011-04-23 14:12 Elk 25\r\n", - "2011-04-23 10:24 Elk 26\r\n", - "2011-04-23 20:08 Wolverine 31\r\n", - "2011-04-23 18:46 Muskox 20\r\n" - ] - } - ], - "prompt_number": 49 + "outputs": [] }, { "cell_type": "code", @@ -2844,23 +1025,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "(['2011-04-23', '2011-04-23'], ['14:12', '10:24'], ['Elk', 'Elk'], [25, 26])" - ] - }, - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "\n" - ] - } - ], - "prompt_number": 50 + "outputs": [] }, { "cell_type": "markdown", @@ -2888,8 +1053,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 54 + "outputs": [] }, { "cell_type": "code", @@ -2910,8 +1074,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 57 + "outputs": [] }, { "cell_type": "code", @@ -2921,204 +1084,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f = $(\"#ipython_nose_421c36436bd1424eaeea6cc04f73853f\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_421c36436bd1424eaeea6cc04f73853f.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_421c36436bd1424eaeea6cc04f73853f;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 10/10 tests passed\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 58, - "text": [ - "10/10 tests passed\n" - ] - } - ], - "prompt_number": 58 + "outputs": [] }, { "cell_type": "markdown", @@ -3181,8 +1147,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 72 + "outputs": [] }, { "cell_type": "markdown", @@ -3205,8 +1170,7 @@ ], "language": "python", "metadata": {}, - "outputs": [], - "prompt_number": 75 + "outputs": [] }, { "cell_type": "code", @@ -3216,228 +1180,7 @@ ], "language": "python", "metadata": {}, - "outputs": [ - { - "html": [ - "
" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0 = $(\"#ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0\");" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0.append($(\".\"));" - ], - "output_type": "display_data" - }, - { - "javascript": [ - "delete document.ipython_nose_5c9bfbdef5e84275adfd02c8a2b010f0;" - ], - "output_type": "display_data" - }, - { - "html": [ - " \n", - " \n", - " \n", - " \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - "
\n", - "  \n", - "
\n", - " 14/14 tests passed\n", - "
\n", - " " - ], - "output_type": "pyout", - "prompt_number": 76, - "text": [ - "14/14 tests passed\n" - ] - } - ], - "prompt_number": 76 + "outputs": [] }, { "cell_type": "markdown",