diff --git a/01_jupyter_howto.ipynb b/01_jupyter_howto.ipynb index 71689cb..e2523fd 100644 --- a/01_jupyter_howto.ipynb +++ b/01_jupyter_howto.ipynb @@ -15,7 +15,7 @@ "\n", "What is an interactive Python notebook? It is a notebook that mixes documentation (like this!) with Python code (like below), with the output of that code.\n", "\n", - "For example, below is the Python code to print \"Hello World\". Click on the below code and then press \"SHIFT+Return\". You should see that the code is run, and below \"Hello World\" will be printed." + "For example, the cell below contains the Python code to print \"Hello World\". Click on the below code and then press \"CTRL+Return\". You should see that the code is run, and below \"Hello World\" will be printed." ] }, { @@ -31,9 +31,28 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The above code is interactive because it runs when you pressed \"SHIFT+Return\". It is also interactive because you can change it. For example, click again on the code and change \"Hello World\" to \"Hello Jupyter\". Press \"SHIFT+Return\" again and you should see \"Hello Jupyter\" printed.\n", + "The above code is interactive because it runs when you pressed \"CTRL+Return\". It is also interactive because you can change it. For example, click again on the code and change \"Hello World\" to \"Hello Jupyter\". Press \"CTRL+Return\" again and you should see \"Hello Jupyter\" printed.\n", "\n", - "A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press \"SHIFT+Return\"? Have a go. Are you right?" + "Pressing \"CTRL+Return\" repeatedly allows you to re-run the contents of a cell many times. Try repeatedly running the cell below." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "from random import randint\n", + "print(randint(0, 10))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press \"CTRL+Return\"? Have a go. Are you right?\n", + "\n", + "Try pressing \"SHIFT+Return\". This time, as well as the cell being executed, the focus moved to the cell below. By continually pressing \"SHIFT+Return\" you can navigate through a notebook cell-by-cell." ] }, { @@ -280,13 +299,6 @@ "Have a play. Explore the buttons and menu items. Take a look at the \"Help\" in the menu. Remember that, if everything goes wrong, you can always click \"Stop\" or select \"Kernel | Restart & Clear Output\" from the menu." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -368,13 +380,6 @@ "Alternatively, you can save a copy of this notebook under a different name by clicking \"File | Make a Copy...\" in the menu. You can then copy this file or send it to someone else. As a notebook contains the code, data, outputs and analysis, sharing notebooks is the closest thing we have to interactive papers. This is a really powerful concept and, I believe, will fundementally change how we report and share the results of computational and data analysis in science." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -437,13 +442,6 @@ "\n", "Thanks to the [Microsoft Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/aks/) on which this Jupyter image is running." ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { @@ -462,7 +460,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.5.4" } }, "nbformat": 4, diff --git a/answers/01_jupyter_howto.ipynb b/answers/01_jupyter_howto.ipynb index e32c51f..c1d353b 100644 --- a/answers/01_jupyter_howto.ipynb +++ b/answers/01_jupyter_howto.ipynb @@ -15,7 +15,7 @@ "\n", "What is an interactive Python notebook? It is a notebook that mixes documentation (like this!) with Python code (like below), with the output of that code.\n", "\n", - "For example, below is the Python code to print \"Hello World\". Click on the below code and then press \"SHIFT+Return\". You should see that the code is run, and below \"Hello World\" will be printed." + "For example, the cell below contains the Python code to print \"Hello World\". Click on the below code and then press \"CTRL+Return\". You should see that the code is run, and below \"Hello World\" will be printed." ] }, { @@ -39,15 +39,42 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The above code is interactive because it runs when you pressed \"SHIFT+Return\". It is also interactive because you can change it. For example, click again on the code and change \"Hello World\" to \"Hello Jupyter\". Press \"SHIFT+Return\" again and you should see \"Hello Jupyter\" printed.\n", + "The above code is interactive because it runs when you pressed \"CTRL+Return\". It is also interactive because you can change it. For example, click again on the code and change \"Hello World\" to \"Hello Jupyter\". Press \"CTRL+Return\" again and you should see \"Hello Jupyter\" printed.\n", "\n", - "A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press \"SHIFT+Return\"? Have a go. Are you right?" + "Pressing \"CTRL+Return\" repeatedly allows you to re-run the contents of a cell many times. Try repeatedly running the cell below." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "5\n" + ] + } + ], + "source": [ + "from random import randint\n", + "print(randint(0, 10))" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press \"CTRL+Return\"? Have a go. Are you right?\n", + "\n", + "Try pressing \"SHIFT+Return\". This time, as well as the cell being executed, the focus moved to the cell below. By continually pressing \"SHIFT+Return\" you can navigate through a notebook cell-by-cell." + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -85,38 +112,22 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ - "x = 21" + "x = 5" ] }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "21...\n", - "20...\n", - "19...\n", - "18...\n", - "17...\n", - "16...\n", - "15...\n", - "14...\n", - "13...\n", - "12...\n", - "11...\n", - "10...\n", - "9...\n", - "8...\n", - "7...\n", - "6...\n", "5...\n", "4...\n", "3...\n", @@ -162,7 +173,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -176,7 +187,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "7fe11cc237114eadb39b84e672bddf3d", + "model_id": "904bdd0e82f340cf91e31996864cae0a", "version_major": 2, "version_minor": 0 }, @@ -205,7 +216,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "de114cb2c0664de99016dfb85a2f452c", + "model_id": "58130e6132cb464c86c722052ed163e0", "version_major": 2, "version_minor": 0 }, @@ -225,7 +236,7 @@ "

\n" ], "text/plain": [ - "Tab(children=(Box(children=(Box(children=(Box(children=(Label(value='step'), IntSlider(value=1, min=-100)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='delay'), IntSlider(value=100, max=1000, min=10)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='background'), ColorPicker(value='white')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='camera'), Dropdown(options=('perspective', 'orthographic'), value='perspective')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value=''), HBox(children=(ToggleButton(value=False, description='Smoothing', tooltip='smoothing trajectory'), Button(description=' Center', icon='bullseye', style=ButtonStyle()), Button(description=' Screenshot', icon='camera', style=ButtonStyle()), Button(description='qtconsole', style=ButtonStyle(), tooltip='pop up qtconsole')), layout=Layout(flex='1 1 auto', width='auto'))), layout=Layout(display='flex', flex_flow='row', justify_content='space-between'))), layout=Layout(align_items='stretch', display='flex', flex_flow='column', width='100%')),)), Box(), Box(), Box(), Box(), Box()), layout=Layout(align_items='stretch', align_self='center'), _titles={'4': 'Extra', '2': 'Preference', '3': 'Theme', '1': 'Representation', '0': 'General', '5': 'Help'})" + "Tab(children=(Box(children=(Box(children=(Box(children=(Label(value='step'), IntSlider(value=1, min=-100)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='delay'), IntSlider(value=100, max=1000, min=10)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='background'), ColorPicker(value='white')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='camera'), Dropdown(options=('perspective', 'orthographic'), value='perspective')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value=''), HBox(children=(ToggleButton(value=False, description='Smoothing', tooltip='smoothing trajectory'), Button(description=' Center', icon='bullseye', style=ButtonStyle()), Button(description=' Screenshot', icon='camera', style=ButtonStyle()), Button(description='qtconsole', style=ButtonStyle(), tooltip='pop up qtconsole')), layout=Layout(flex='1 1 auto', width='auto'))), layout=Layout(display='flex', flex_flow='row', justify_content='space-between'))), layout=Layout(align_items='stretch', display='flex', flex_flow='column', width='100%')),)), Box(), Box(), Box(), Box(), Box()), layout=Layout(align_items='stretch', align_self='center'), _titles={'5': 'Help', '3': 'Theme', '0': 'General', '1': 'Representation', '4': 'Extra', '2': 'Preference'})" ] }, "metadata": {}, @@ -243,23 +254,23 @@ "source": [ "You can rotate and interact with molecules once they have loaded (the \"[*]\" next to a cell indicates that it is processing. It will turn into a number once processing is complete)\n", "\n", - "You can change molecular representations and interact with the 3D molecule view. Later on we will go through some examples showing what you can do and how you can select parts of the molecule.\n", + "You can change molecular representations and interact with the 3D molecule view. [Later on](16_viewing_molecules.ipynb) we will go through some examples showing what you can do and how you can select parts of the molecule (or [click here](16_viewing_molecules.ipynb) if you want to jump ahead and learn now).\n", "\n", "In addition to viewing molecules, you can also draw graphs. This is achieved using a combination of the [matplotlib](https://matplotlib.org), [numpy](http://www.numpy.org) and [pandas](https://pandas.pydata.org) modules. For example, the below code draws a sine and cosine curve." ] }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 14, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" }, @@ -270,7 +281,7 @@ "\n", "\n", - "\n", + "\n", " \n", " \n" ], "text/plain": [ - "" + "
" ] }, "metadata": {}, @@ -997,7 +1008,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Later on we will go through pandas, matplotlib and numpy and you will learn how to draw lots of different and interesting graphs." + "Later on we will go through [pandas](12_pandas.ipynb), [matplotlib](15_matplotlib.ipynb) and [numpy](13_basic_numpy.ipynb) and you will learn how to draw lots of different and interesting graphs (or click the links to jump ahead and learn now)." ] }, { @@ -1039,30 +1050,17 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "a = 10\n", - "b = 32" - ] + "source": [] }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "The answer to life, the universe and everything is 42\n" - ] - } - ], - "source": [ - "print(\"The answer to life, the universe and everything is %d\" % (a+b))" - ] + "outputs": [], + "source": [] }, { "cell_type": "markdown", @@ -1077,7 +1075,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -1095,7 +1093,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -1104,7 +1102,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -1113,7 +1111,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -1139,13 +1137,6 @@ "Have a play. Explore the buttons and menu items. Take a look at the \"Help\" in the menu. Remember that, if everything goes wrong, you can always click \"Stop\" or select \"Kernel | Restart & Clear Output\" from the menu." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -1157,21 +1148,23 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "01_jupyter_howto.ipynb\t 09_exceptions.ipynb\t data\r\n", - "02_lists.ipynb\t\t 10_error_handling.ipynb\t images\r\n", - "03_dictionaries.ipynb\t 11_modules.ipynb\t\t morse.py\r\n", - "04_functions.ipynb\t 12_pandas.ipynb\t\t __pycache__\r\n", - "05_objects.ipynb\t 13_basic_numpy.ipynb\t superhero2.py\r\n", - "06_classes.ipynb\t 14_more_numpy.ipynb\t superhero.py\r\n", - "07_documentation.ipynb\t 15_matplotlib.ipynb\r\n", - "08_class_documentation.ipynb 17_regular_expressions.ipynb\r\n" + "01_jupyter_howto.ipynb\t 11_modules.ipynb\t\t data\r\n", + "02_lists.ipynb\t\t 12_pandas.ipynb\t\t html\r\n", + "03_dictionaries.ipynb\t 13_basic_numpy.ipynb\t images\r\n", + "04_functions.ipynb\t 14_more_numpy.ipynb\t LICENSE\r\n", + "05_objects.ipynb\t 15_matplotlib.ipynb\t README.md\r\n", + "06_classes.ipynb\t 16_viewing_molecules.ipynb superhero2.py\r\n", + "07_documentation.ipynb\t 17_regular_expressions.ipynb superhero.py\r\n", + "08_class_documentation.ipynb answers\t\t\t tmp.ipynb\r\n", + "09_exceptions.ipynb\t AUTHORS\r\n", + "10_error_handling.ipynb _config.yml\r\n" ] } ], @@ -1188,7 +1181,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -1232,7 +1225,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -1241,7 +1234,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -1255,7 +1248,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "6f4988dd79c04f4aace8a49516e4f333", + "model_id": "99f595b9e6ad433a8be815af1cff7a6c", "version_major": 2, "version_minor": 0 }, @@ -1284,7 +1277,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "45a61f22196c4fbcadaca31f50b04243", + "model_id": "23d41ec035dc40fcbc7413c12f08ad8b", "version_major": 2, "version_minor": 0 }, @@ -1304,7 +1297,7 @@ "

\n" ], "text/plain": [ - "Tab(children=(Box(children=(Box(children=(Box(children=(Label(value='step'), IntSlider(value=1, min=-100)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='delay'), IntSlider(value=100, max=1000, min=10)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='background'), ColorPicker(value='white')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='camera'), Dropdown(options=('perspective', 'orthographic'), value='perspective')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value=''), HBox(children=(ToggleButton(value=False, description='Smoothing', tooltip='smoothing trajectory'), Button(description=' Center', icon='bullseye', style=ButtonStyle()), Button(description=' Screenshot', icon='camera', style=ButtonStyle()), Button(description='qtconsole', style=ButtonStyle(), tooltip='pop up qtconsole')), layout=Layout(flex='1 1 auto', width='auto'))), layout=Layout(display='flex', flex_flow='row', justify_content='space-between'))), layout=Layout(align_items='stretch', display='flex', flex_flow='column', width='100%')),)), Box(), Box(), Box(), Box(), Box()), layout=Layout(align_items='stretch', align_self='center'), _titles={'4': 'Extra', '2': 'Preference', '3': 'Theme', '1': 'Representation', '0': 'General', '5': 'Help'})" + "Tab(children=(Box(children=(Box(children=(Box(children=(Label(value='step'), IntSlider(value=1, min=-100)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='delay'), IntSlider(value=100, max=1000, min=10)), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='background'), ColorPicker(value='white')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value='camera'), Dropdown(options=('perspective', 'orthographic'), value='perspective')), layout=Layout(display='flex', flex_flow='row', justify_content='space-between')), Box(children=(Label(value=''), HBox(children=(ToggleButton(value=False, description='Smoothing', tooltip='smoothing trajectory'), Button(description=' Center', icon='bullseye', style=ButtonStyle()), Button(description=' Screenshot', icon='camera', style=ButtonStyle()), Button(description='qtconsole', style=ButtonStyle(), tooltip='pop up qtconsole')), layout=Layout(flex='1 1 auto', width='auto'))), layout=Layout(display='flex', flex_flow='row', justify_content='space-between'))), layout=Layout(align_items='stretch', display='flex', flex_flow='column', width='100%')),)), Box(), Box(), Box(), Box(), Box()), layout=Layout(align_items='stretch', align_self='center'), _titles={'5': 'Help', '3': 'Theme', '0': 'General', '1': 'Representation', '4': 'Extra', '2': 'Preference'})" ] }, "metadata": {}, @@ -1313,10 +1306,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 25, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -1347,13 +1340,6 @@ "Alternatively, you can save a copy of this notebook under a different name by clicking \"File | Make a Copy...\" in the menu. You can then copy this file or send it to someone else. As a notebook contains the code, data, outputs and analysis, sharing notebooks is the closest thing we have to interactive papers. This is a really powerful concept and, I believe, will fundementally change how we report and share the results of computational and data analysis in science." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -1416,13 +1402,6 @@ "\n", "Thanks to the [Microsoft Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/aks/) on which this Jupyter image is running." ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { @@ -1441,7 +1420,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.5.4" } }, "nbformat": 4, diff --git a/html/01_jupyter_howto.html b/html/01_jupyter_howto.html index a6e5a0b..863d13d 100644 --- a/html/01_jupyter_howto.html +++ b/html/01_jupyter_howto.html @@ -11726,9 +11726,7 @@ div#notebook { overflow: visible; border-top: none; -} - -@media print { +}@media print { div.cell { display: block; page-break-inside: avoid; @@ -11749,7 +11747,7 @@ - +
-
-
+
@@ -11785,7 +11782,7 @@

What is Jupyter and how do you u
  • An interactive bash terminal (we will use this later)
  • What is an interactive Python notebook? It is a notebook that mixes documentation (like this!) with Python code (like below), with the output of that code.

    -

    For example, below is the Python code to print "Hello World". Click on the below code and then press "SHIFT+Return". You should see that the code is run, and below "Hello World" will be printed.

    +

    For example, the cell below contains the Python code to print "Hello World". Click on the below code and then press "CTRL+Return". You should see that the code is run, and below "Hello World" will be printed.

    @@ -11803,13 +11800,36 @@

    What is Jupyter and how do you u

    -
    -
    +
    -

    The above code is interactive because it runs when you pressed "SHIFT+Return". It is also interactive because you can change it. For example, click again on the code and change "Hello World" to "Hello Jupyter". Press "SHIFT+Return" again and you should see "Hello Jupyter" printed.

    -

    A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press "SHIFT+Return"? Have a go. Are you right?

    +

    The above code is interactive because it runs when you pressed "CTRL+Return". It is also interactive because you can change it. For example, click again on the code and change "Hello World" to "Hello Jupyter". Press "CTRL+Return" again and you should see "Hello Jupyter" printed.

    +

    Pressing "CTRL+Return" repeatedly allows you to re-run the contents of a cell many times. Try repeatedly running the cell below.

    + +
    +
    +
    +
    +
    +
    In [ ]:
    +
    +
    +
    from random import randint
    +print(randint(0, 10))
    +
    + +
    +
    +
    + +
    +
    +
    +
    +
    +

    A code cell can have as much or little Python in it as you want. The below cell defines a function and then runs it in a loop. What do you think will be printed out when you select it and press "CTRL+Return"? Have a go. Are you right?

    +

    Try pressing "SHIFT+Return". This time, as well as the cell being executed, the focus moved to the cell below. By continually pressing "SHIFT+Return" you can navigate through a notebook cell-by-cell.

    @@ -11832,8 +11852,7 @@

    What is Jupyter and how do you u

    -
    -
    +
    @@ -11868,8 +11887,7 @@

    What is Jupyter and how do you u

    -
    -
    +
    @@ -11884,8 +11902,7 @@

    What is Jupyter and how do you u

    -
    -
    +
    @@ -11909,8 +11926,7 @@

    Interactive Graphics -
    +
    @@ -11946,8 +11962,7 @@

    Interactive Graphics -
    +
    @@ -11956,8 +11971,7 @@

    Interactive Graphics -
    +
    @@ -11970,8 +11984,7 @@

    Mixing documentation and code -
    +
    -
    -
    -
    In [ ]:
    -
    -
    -
     
    -
    - -
    -
    -
    - -
    -
    -
    -
    In [ ]:
    -
    -
    -
     
    -
    - -
    -
    -
    - -
    -
    -
    +
    @@ -12040,8 +12026,7 @@

    Controlling the Python kernel -
    +
    @@ -12089,8 +12074,7 @@

    Controlling the Python kernel -
    +
    -
    -
    +
    @@ -12141,8 +12111,7 @@

    Running external programs in a

    -
    -
    +
    @@ -12164,8 +12133,7 @@

    Running external programs in a

    -
    -
    +
    @@ -12201,8 +12169,7 @@

    Running external programs in a

    -
    -
    +
    @@ -12217,21 +12184,7 @@

    Saving the notebook -
    -
    In [ ]:
    -
    -
    -
     
    -
    - -
    -
    -
    - -

    -
    -
    +
    @@ -12253,8 +12206,7 @@

    The Jupyter Hub -
    + diff --git a/html/answers/01_jupyter_howto.html b/html/answers/01_jupyter_howto.html index a84dd50..6f41de3 100644 --- a/html/answers/01_jupyter_howto.html +++ b/html/answers/01_jupyter_howto.html @@ -11726,9 +11726,7 @@ div#notebook { overflow: visible; border-top: none; -} - -@media print { +}@media print { div.cell { display: block; page-break-inside: avoid; @@ -11749,7 +11747,7 @@ - +

    +
    + -
    +
    @@ -12045,13 +12076,12 @@

    Interactive Graphics -
    +
    @@ -12059,7 +12089,7 @@

    Interactive Graphics
    -
    In [14]:
    +
    In [7]:
    +
    +
    - +

    Interactive Graphics +" id="mc738db6892" style="stroke:#000000;stroke-width:0.8;"/> - + @@ -12192,7 +12226,7 @@

    Interactive Graphics - + @@ -12232,7 +12266,7 @@

    Interactive Graphics - + @@ -12261,7 +12295,7 @@

    Interactive Graphics - + @@ -12297,7 +12331,7 @@

    Interactive Graphics - + @@ -12310,7 +12344,7 @@

    Interactive Graphics - + @@ -12323,7 +12357,7 @@

    Interactive Graphics - + @@ -12340,10 +12374,10 @@

    Interactive Graphics +" id="ma5bbd014b9" style="stroke:#000000;stroke-width:0.8;"/> - + @@ -12367,7 +12401,7 @@

    Interactive Graphics - + @@ -12409,7 +12443,7 @@

    Interactive Graphics - + @@ -12424,7 +12458,7 @@

    Interactive Graphics - + @@ -12439,7 +12473,7 @@

    Interactive Graphics - + @@ -12453,7 +12487,7 @@

    Interactive Graphics - Interactive Graphics - Interactive Graphics + @@ -12812,18 +12846,16 @@

    Interactive Graphics -
    +
    -

    Later on we will go through pandas, matplotlib and numpy and you will learn how to draw lots of different and interesting graphs.

    +

    Later on we will go through pandas, matplotlib and numpy and you will learn how to draw lots of different and interesting graphs (or click the links to jump ahead and learn now).

    -
    -
    +
    @@ -12836,8 +12868,7 @@

    Mixing documentation and code -
    +
    -
    -
    -
    In [15]:
    -
    -
    -
    a = 10
    -b = 32
    -
    - -
    -
    -
    - -
    -
    -
    -
    In [16]:
    -
    -
    -
    print("The answer to life, the universe and everything is %d" % (a+b))
    -
    - -
    -
    -
    - -
    -
    - - -
    -
    - -
    -
    The answer to life, the universe and everything is 42
    -
    -
    -
    - -
    -
    - -
    -
    -
    +
    @@ -12910,7 +12897,7 @@

    Controlling the Python kernel
    -
    In [17]:
    +
    In [8]:
    def sleep(n):
    @@ -12923,8 +12910,7 @@ 

    Controlling the Python kernel -
    +
    @@ -12935,7 +12921,7 @@

    Controlling the Python kernel
    -
    In [18]:
    +
    In [9]:
    sleep(30)
    @@ -12948,7 +12934,7 @@ 

    Controlling the Python kernel
    -
    In [19]:
    +
    In [10]:
    sleep(30)
    @@ -12961,7 +12947,7 @@ 

    Controlling the Python kernel
    -
    In [20]:
    +
    In [11]:
    sleep(30)
    @@ -12972,8 +12958,7 @@ 

    Controlling the Python kernel -
    +
    -
    -
    +
    @@ -13013,7 +12984,7 @@

    Running external programs in a

    -
    In [21]:
    +
    In [12]:
    ! ls
    @@ -13028,17 +12999,21 @@ 

    Running external programs in a
    +
    +
    -
    01_jupyter_howto.ipynb	      09_exceptions.ipynb	    data
    -02_lists.ipynb		      10_error_handling.ipynb	    images
    -03_dictionaries.ipynb	      11_modules.ipynb		    morse.py
    -04_functions.ipynb	      12_pandas.ipynb		    __pycache__
    -05_objects.ipynb	      13_basic_numpy.ipynb	    superhero2.py
    -06_classes.ipynb	      14_more_numpy.ipynb	    superhero.py
    -07_documentation.ipynb	      15_matplotlib.ipynb
    -08_class_documentation.ipynb  17_regular_expressions.ipynb
    +
    01_jupyter_howto.ipynb	      11_modules.ipynb		    data
    +02_lists.ipynb		      12_pandas.ipynb		    html
    +03_dictionaries.ipynb	      13_basic_numpy.ipynb	    images
    +04_functions.ipynb	      14_more_numpy.ipynb	    LICENSE
    +05_objects.ipynb	      15_matplotlib.ipynb	    README.md
    +06_classes.ipynb	      16_viewing_molecules.ipynb    superhero2.py
    +07_documentation.ipynb	      17_regular_expressions.ipynb  superhero.py
    +08_class_documentation.ipynb  answers			    tmp.ipynb
    +09_exceptions.ipynb	      AUTHORS
    +10_error_handling.ipynb       _config.yml
     
    @@ -13047,8 +13022,7 @@

    Running external programs in a

    -
    -
    +
    @@ -13059,7 +13033,7 @@

    Running external programs in a

    -
    In [23]:
    +
    In [13]:
    ! cat LICENSE
    @@ -13074,8 +13048,10 @@ 

    Running external programs in a
    +
    +
    MIT License
     
    @@ -13106,8 +13082,7 @@ 

    Running external programs in a

    -
    -
    +
    @@ -13118,7 +13093,7 @@

    Running external programs in a

    -
    In [24]:
    +
    In [14]:
    ! cp data/dioxin.pdb ./
    @@ -13131,7 +13106,7 @@ 

    Running external programs in a

    -
    In [25]:
    +
    In [15]:
    from BioSimSpace import viewMolecules  # importing again in case we restarted the kernel
    @@ -13147,8 +13122,10 @@ 

    Running external programs in a
    +
    +
    Reading molecules from '['dioxin.pdb']'
     Rendering the molecules...
    @@ -13157,52 +13134,58 @@ 

    Running external programs in a

    +
    + -
    +
    +
    + -
    +
    -
    Out[25]:
    + +
    Out[15]:
    +
    -
    <BioSimSpace.Notebook.view.View at 0x7f07313dfd68>
    +
    <BioSimSpace.Notebook.view.View at 0x7f8945012898>
    @@ -13211,8 +13194,7 @@

    Running external programs in a

    -