Commit 2db82f1e authored by Mark Santcroos's avatar Mark Santcroos

Mainly python3 updates.

parent c89fe354
......@@ -189,10 +189,8 @@
},
{
"cell_type": "code",
"execution_count": 152,
"metadata": {
"collapsed": true
},
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -224,10 +222,8 @@
},
{
"cell_type": "code",
"execution_count": 153,
"metadata": {
"collapsed": true
},
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# This is a code cell\n",
......@@ -236,10 +232,8 @@
},
{
"cell_type": "code",
"execution_count": 154,
"metadata": {
"collapsed": true
},
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -297,10 +291,8 @@
},
{
"cell_type": "code",
"execution_count": 155,
"metadata": {
"collapsed": true
},
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"import numpy"
......@@ -308,37 +300,37 @@
},
{
"cell_type": "code",
"execution_count": 156,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<module 'numpy.random' from '/Users/mark/anaconda/lib/python2.7/site-packages/numpy/random/__init__.pyc'>"
"0.8147189176320729"
]
},
"execution_count": 156,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# numpy.rand <TAB>\n",
"numpy.random"
"numpy.random.random()"
]
},
{
"cell_type": "code",
"execution_count": 157,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<module 'numpy.random' from '/Users/mark/anaconda/lib/python2.7/site-packages/numpy/random/__init__.pyc'>"
"<module 'numpy.random' from '/Users/mark/Desktop/course/lib/python3.6/site-packages/numpy/random/__init__.py'>"
]
},
"execution_count": 157,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
......@@ -353,10 +345,8 @@
},
{
"cell_type": "code",
"execution_count": 158,
"metadata": {
"collapsed": true
},
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -384,7 +374,7 @@
},
{
"cell_type": "code",
"execution_count": 159,
"execution_count": 8,
"metadata": {},
"outputs": [
{
......@@ -393,7 +383,7 @@
"42"
]
},
"execution_count": 159,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
......@@ -404,7 +394,7 @@
},
{
"cell_type": "code",
"execution_count": 160,
"execution_count": 9,
"metadata": {},
"outputs": [
{
......@@ -416,7 +406,7 @@
}
],
"source": [
"print \"The Answer to the Ultimate Question of Life, the Universe, and Everything is %d.\" % _"
"print(\"The Answer to the Ultimate Question of Life, the Universe, and Everything is %d.\" % _)"
]
},
{
......@@ -428,8 +418,10 @@
},
{
"cell_type": "code",
"execution_count": 161,
"metadata": {},
"execution_count": 10,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
......@@ -484,14 +476,14 @@
"#\n",
"# All output\n",
"#\n",
"for n in range(42): print n"
"for n in range(42): print(n)"
]
},
{
"cell_type": "code",
"execution_count": 162,
"execution_count": 11,
"metadata": {
"scrolled": true
"collapsed": true
},
"outputs": [
{
......@@ -547,12 +539,12 @@
"#\n",
"# Disabled output ('o')\n",
"#\n",
"for n in range(42): print n"
"for n in range(42): print(n)"
]
},
{
"cell_type": "code",
"execution_count": 163,
"execution_count": 12,
"metadata": {
"scrolled": true
},
......@@ -610,12 +602,12 @@
"#\n",
"# Reduced output ('O')\n",
"#\n",
"for n in range(42): print n"
"for n in range(42): print(n)"
]
},
{
"cell_type": "code",
"execution_count": 164,
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
......@@ -625,10 +617,8 @@
},
{
"cell_type": "code",
"execution_count": 165,
"metadata": {
"collapsed": true
},
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -646,18 +636,18 @@
},
{
"cell_type": "code",
"execution_count": 166,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "integer division or modulo by zero",
"evalue": "division by zero",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-166-b75601cc3487>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;36m42\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
"\u001b[0;32m<ipython-input-15-52cebea8b64f>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;36m42\u001b[0m \u001b[0;34m/\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m: division by zero"
]
}
],
......@@ -696,7 +686,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
......@@ -726,10 +716,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -746,12 +734,8 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"cell_type": "markdown",
"metadata": {},
"source": [
"![LUMC](https://www.lumc.nl/images/html5/logo-lumc.png)"
]
......@@ -765,10 +749,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -785,12 +767,8 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"cell_type": "markdown",
"metadata": {},
"source": [
"$$E = mc^{2}$$"
]
......@@ -804,10 +782,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -825,18 +801,181 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 20,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"application/json": {
"cell": {
"!": "OSMagics",
"HTML": "Other",
"SVG": "Other",
"bash": "Other",
"capture": "ExecutionMagics",
"debug": "ExecutionMagics",
"file": "Other",
"html": "DisplayMagics",
"javascript": "DisplayMagics",
"js": "DisplayMagics",
"latex": "DisplayMagics",
"markdown": "DisplayMagics",
"perl": "Other",
"prun": "ExecutionMagics",
"pypy": "Other",
"python": "Other",
"python2": "Other",
"python3": "Other",
"ruby": "Other",
"script": "ScriptMagics",
"sh": "Other",
"svg": "DisplayMagics",
"sx": "OSMagics",
"system": "OSMagics",
"time": "ExecutionMagics",
"timeit": "ExecutionMagics",
"writefile": "OSMagics"
},
"line": {
"alias": "OSMagics",
"alias_magic": "BasicMagics",
"autoawait": "AsyncMagics",
"autocall": "AutoMagics",
"automagic": "AutoMagics",
"autosave": "KernelMagics",
"bookmark": "OSMagics",
"cat": "Other",
"cd": "OSMagics",
"clear": "KernelMagics",
"colors": "BasicMagics",
"config": "ConfigMagics",
"connect_info": "KernelMagics",
"cp": "Other",
"debug": "ExecutionMagics",
"dhist": "OSMagics",
"dirs": "OSMagics",
"doctest_mode": "BasicMagics",
"ed": "Other",
"edit": "KernelMagics",
"env": "OSMagics",
"gui": "BasicMagics",
"hist": "Other",
"history": "HistoryMagics",
"killbgscripts": "ScriptMagics",
"ldir": "Other",
"less": "KernelMagics",
"lf": "Other",
"lk": "Other",
"ll": "Other",
"load": "CodeMagics",
"load_ext": "ExtensionMagics",
"loadpy": "CodeMagics",
"logoff": "LoggingMagics",
"logon": "LoggingMagics",
"logstart": "LoggingMagics",
"logstate": "LoggingMagics",
"logstop": "LoggingMagics",
"ls": "Other",
"lsmagic": "BasicMagics",
"lx": "Other",
"macro": "ExecutionMagics",
"magic": "BasicMagics",
"man": "KernelMagics",
"matplotlib": "PylabMagics",
"mkdir": "Other",
"more": "KernelMagics",
"mv": "Other",
"notebook": "BasicMagics",
"page": "BasicMagics",
"pastebin": "CodeMagics",
"pdb": "ExecutionMagics",
"pdef": "NamespaceMagics",
"pdoc": "NamespaceMagics",
"pfile": "NamespaceMagics",
"pinfo": "NamespaceMagics",
"pinfo2": "NamespaceMagics",
"pip": "BasicMagics",
"popd": "OSMagics",
"pprint": "BasicMagics",
"precision": "BasicMagics",
"prun": "ExecutionMagics",
"psearch": "NamespaceMagics",
"psource": "NamespaceMagics",
"pushd": "OSMagics",
"pwd": "OSMagics",
"pycat": "OSMagics",
"pylab": "PylabMagics",
"qtconsole": "KernelMagics",
"quickref": "BasicMagics",
"recall": "HistoryMagics",
"rehashx": "OSMagics",
"reload_ext": "ExtensionMagics",
"rep": "Other",
"rerun": "HistoryMagics",
"reset": "NamespaceMagics",
"reset_selective": "NamespaceMagics",
"rm": "Other",
"rmdir": "Other",
"run": "ExecutionMagics",
"save": "CodeMagics",
"sc": "OSMagics",
"set_env": "OSMagics",
"store": "StoreMagics",
"sx": "OSMagics",
"system": "OSMagics",
"tb": "ExecutionMagics",
"time": "ExecutionMagics",
"timeit": "ExecutionMagics",
"unalias": "OSMagics",
"unload_ext": "ExtensionMagics",
"who": "NamespaceMagics",
"who_ls": "NamespaceMagics",
"whos": "NamespaceMagics",
"xdel": "NamespaceMagics",
"xmode": "BasicMagics"
}
},
"text/plain": [
"Available line magics:\n",
"%alias %alias_magic %autoawait %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %killbgscripts %ldir %less %lf %lk %ll %load %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %ls %lsmagic %lx %macro %magic %man %matplotlib %mkdir %more %mv %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %popd %pprint %precision %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %rm %rmdir %run %save %sc %set_env %store %sx %system %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode\n",
"\n",
"Available cell magics:\n",
"%%! %%HTML %%SVG %%bash %%capture %%debug %%file %%html %%javascript %%js %%latex %%markdown %%perl %%prun %%pypy %%python %%python2 %%python3 %%ruby %%script %%sh %%svg %%sx %%system %%time %%timeit %%writefile\n",
"\n",
"Automagic is ON, % prefix IS NOT needed for line magics."
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%lsmagic"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 21,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[34mApplications\u001b[m\u001b[m/ \u001b[34mhome\u001b[m\u001b[m/\r\n",
"\u001b[34mLibrary\u001b[m\u001b[m/ installer.failurerequests\r\n",
"\u001b[34mNetwork\u001b[m\u001b[m/ \u001b[34mnet\u001b[m\u001b[m/\r\n",
"\u001b[34mSystem\u001b[m\u001b[m/ \u001b[34mopt\u001b[m\u001b[m/\r\n",
"\u001b[34mUsers\u001b[m\u001b[m/ \u001b[34mprivate\u001b[m\u001b[m/\r\n",
"\u001b[34mVolumes\u001b[m\u001b[m/ \u001b[34msbin\u001b[m\u001b[m/\r\n",
"\u001b[34mbin\u001b[m\u001b[m/ \u001b[35mtmp\u001b[m\u001b[m@\r\n",
"\u001b[34mcores\u001b[m\u001b[m/ \u001b[34musr\u001b[m\u001b[m/\r\n",
"\u001b[34mdev\u001b[m\u001b[m/ \u001b[35mvar\u001b[m\u001b[m@\r\n",
"\u001b[35metc\u001b[m\u001b[m@\r\n"
]
}
],
"source": [
"%ls /"
]
......@@ -850,19 +989,32 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 22,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"PING www.google.com (172.217.20.100): 56 data bytes\n",
"64 bytes from 172.217.20.100: icmp_seq=0 ttl=54 time=7.704 ms\n",
"64 bytes from 172.217.20.100: icmp_seq=1 ttl=54 time=3.514 ms\n",
"64 bytes from 172.217.20.100: icmp_seq=2 ttl=54 time=3.408 ms\n",
"\n",
"--- www.google.com ping statistics ---\n",
"3 packets transmitted, 3 packets received, 0.0% packet loss\n",
"round-trip min/avg/max/stddev = 3.408/4.875/7.704/2.001 ms\n"
]
}
],
"source": [
"!ping -c 3 www.google.com"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -880,9 +1032,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 24,
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAD8CAYAAACcjGjIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvOIA7rQAAIABJREFUeJzt3Xl4VeW5/vHvQ0gIMxHCGEaZBAGBMHhsrXVEa4tV64iioji21toB+zvnstUeqx2sQ1stioiCKFVbqVotxbFahgSQGZlJmBJICEPIsJPn98de9EQBhUxrZ+/7c125ste73rX3s1ghd9a7JnN3REREqmoUdgEiIhJ7FA4iInIYhYOIiBxG4SAiIodROIiIyGEUDiIichiFg4iIHEbhICIih1E4iIjIYRqHXUB1tWvXznv06BF2GSIiDUZ2dvYud08/lr4NNhx69OhBVlZW2GWIiDQYZrb5WPtqWElERA7zpeFgZs+YWZ6ZLa/SdoKZzTGztcH3tKDdzOwxM1tnZkvNbFiVZcYH/dea2fgq7cPNbFmwzGNmZrW9kiIicnyOZc/hWWDM59omAXP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5Ngk0rCSiIgcI4WDiIgcRuEgIiKHUTiIiMhhFA4iInIYhYOIiBxG4SAiIodROIiIyGH+P7kgBjy1dyMUAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
......@@ -892,10 +1057,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
"### !! Exercise !!\n",
......@@ -922,21 +1085,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"display_name": "Python 3",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.13"
"pygments_lexer": "ipython3",
"version": "3.6.6"
},
"nav_menu": {},
"toc": {
......
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