diff --git a/CO2-SGD.ipynb b/CO2-SGD.ipynb index 4cf6268d5286b87f1d65bbc99df9a6b7d74fae05..0a47f75fff58171a7bdd5d76d0d61566a0219c9d 100644 --- a/CO2-SGD.ipynb +++ b/CO2-SGD.ipynb @@ -2,45 +2,16 @@ "cells": [ { "cell_type": "code", - "execution_count": 52, + "execution_count": 1, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:33.879590Z", - "start_time": "2020-09-18T10:32:33.875547Z" + "end_time": "2020-09-18T14:09:52.138103Z", + "start_time": "2020-09-18T14:09:52.122875Z" }, "init_cell": true, "scrolled": false }, - "outputs": [ - { - "data": { - "text/html": [ - "<script>\n", - " code_show=true; \n", - " function code_toggle() {\n", - " if (code_show)\n", - " {\n", - " $('div.input').hide();\n", - " } \n", - " else \n", - " {\n", - " $('div.input').show();\n", - " }\n", - " code_show = !code_show\n", - " } \n", - " $( document ).ready(code_toggle);\n", - "</script>\n", - "The raw code for this notebook is by default hidden for easier reading.\n", - "To toggle on/off the raw code, click <a href=\"javascript:code_toggle()\">here</a>.\n" - ], - "text/plain": [ - "<IPython.core.display.HTML object>" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "%%HTML\n", "<script>\n", @@ -88,7 +59,7 @@ " and Matthias Scheffler<sup> 1</sup> <br><br>\n", "<sup>1</sup> Fritz Haber Institute of the Max Planck Society, Faradayweg 4-6, D-14195 Berlin, Germany <br>\n", "<sup>2</sup> Skolkovo Institute of Science and Technology, Skolkovo Innovation Center, 121205 Moscow, Russia <br>\n", - "<span class=\"nomad--last-updated\" data-version=\"v1.0.2\">[Last updated: Mai 28, 2020]</span>\n", + "<span class=\"nomad--last-updated\" data-version=\"v1.0.2\">[Last updated: Sep 18, 2020]</span>\n", "</p>\n", "\n", "</div>" @@ -193,11 +164,11 @@ }, { "cell_type": "code", - "execution_count": 53, + "execution_count": 2, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:33.898140Z", - "start_time": "2020-09-18T10:32:33.881557Z" + "end_time": "2020-09-18T14:09:52.850417Z", + "start_time": "2020-09-18T14:09:52.141118Z" }, "hidden": true, "init_cell": true @@ -246,11 +217,11 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": 3, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:34.560776Z", - "start_time": "2020-09-18T10:32:33.900026Z" + "end_time": "2020-09-18T14:09:53.528218Z", + "start_time": "2020-09-18T14:09:52.851996Z" }, "init_cell": true, "scrolled": false @@ -259,7 +230,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "a2a3e1224c5a49e39546f7a1035da42f", "version_major": 2, "version_minor": 0 }, @@ -274,7 +245,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "59e9ee4081274be3b51fc66c45273959", "version_major": 2, "version_minor": 0 }, @@ -288,7 +259,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "9c2908d125d14f6b9c1538a6c67e5088", "version_major": 2, "version_minor": 0 }, @@ -302,7 +273,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "d98eb35d04d74f90b366754568813306", "version_major": 2, "version_minor": 0 }, @@ -578,11 +549,11 @@ }, { "cell_type": "code", - "execution_count": 55, + "execution_count": 4, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:34.564449Z", - "start_time": "2020-09-18T10:32:34.562548Z" + "end_time": "2020-09-18T14:09:53.531330Z", + "start_time": "2020-09-18T14:09:53.529457Z" }, "init_cell": true }, @@ -594,11 +565,11 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": 5, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:34.867745Z", - "start_time": "2020-09-18T10:32:34.565784Z" + "end_time": "2020-09-18T14:09:53.822053Z", + "start_time": "2020-09-18T14:09:53.532710Z" }, "init_cell": true, "scrolled": false @@ -607,7 +578,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "9a33861b5ca24dc991f26198625a7884", "version_major": 2, "version_minor": 0 }, @@ -737,11 +708,11 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": 6, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:35.144121Z", - "start_time": "2020-09-18T10:32:34.869180Z" + "end_time": "2020-09-18T14:09:54.125208Z", + "start_time": "2020-09-18T14:09:53.823450Z" }, "init_cell": true, "scrolled": false @@ -750,7 +721,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "6fee81cd31574fbf952a3fddc9d8ea58", "version_major": 2, "version_minor": 0 }, @@ -868,11 +839,11 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": 7, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:35.149204Z", - "start_time": "2020-09-18T10:32:35.145954Z" + "end_time": "2020-09-18T14:09:54.131818Z", + "start_time": "2020-09-18T14:09:54.127188Z" }, "init_cell": true }, @@ -892,11 +863,11 @@ }, { "cell_type": "code", - "execution_count": 59, + "execution_count": 8, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:35.195142Z", - "start_time": "2020-09-18T10:32:35.151085Z" + "end_time": "2020-09-18T14:09:54.168408Z", + "start_time": "2020-09-18T14:09:54.133656Z" }, "init_cell": true }, @@ -904,7 +875,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "0f96eaae3c0a494886f0431b4aa7cb42", "version_major": 2, "version_minor": 0 }, @@ -926,6 +897,9 @@ "def run_analysis_4(b):\n", " n_cells_exe = 14\n", " javascript('Jupyter.notebook.execute_cell_range(Jupyter.notebook.get_selected_index()+1,Jupyter.notebook.get_selected_index()+'+str(n_cells_exe)+')')\n", + " analysis_5.disabled = False\n", + " text_5.layout.visibility='Hidden'\n", + "\n", "analysis_4.on_click(run_analysis_4)\n" ] }, @@ -934,8 +908,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.439917Z", - "start_time": "2020-09-18T10:31:37.420533Z" + "end_time": "2020-09-18T14:04:52.736110Z", + "start_time": "2020-09-18T14:04:52.698207Z" }, "scrolled": true }, @@ -1005,8 +979,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.454295Z", - "start_time": "2020-09-18T10:31:37.441913Z" + "end_time": "2020-09-18T14:04:52.752460Z", + "start_time": "2020-09-18T14:04:52.739258Z" } }, "outputs": [], @@ -1021,8 +995,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.472163Z", - "start_time": "2020-09-18T10:31:37.456588Z" + "end_time": "2020-09-18T14:04:52.770197Z", + "start_time": "2020-09-18T14:04:52.756694Z" } }, "outputs": [], @@ -1037,8 +1011,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.632740Z", - "start_time": "2020-09-18T10:31:37.474141Z" + "end_time": "2020-09-18T14:04:52.941146Z", + "start_time": "2020-09-18T14:04:52.773203Z" } }, "outputs": [], @@ -1165,8 +1139,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.637162Z", - "start_time": "2020-09-18T10:31:37.633971Z" + "end_time": "2020-09-18T14:04:52.945455Z", + "start_time": "2020-09-18T14:04:52.942290Z" } }, "outputs": [], @@ -1179,8 +1153,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.921827Z", - "start_time": "2020-09-18T10:31:37.638945Z" + "end_time": "2020-09-18T14:04:53.228807Z", + "start_time": "2020-09-18T14:04:52.947016Z" }, "scrolled": false }, @@ -1432,8 +1406,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:37.925851Z", - "start_time": "2020-09-18T10:31:37.922976Z" + "end_time": "2020-09-18T14:04:53.232969Z", + "start_time": "2020-09-18T14:04:53.230005Z" } }, "outputs": [], @@ -1446,8 +1420,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:38.197801Z", - "start_time": "2020-09-18T10:31:37.927415Z" + "end_time": "2020-09-18T14:04:53.590262Z", + "start_time": "2020-09-18T14:04:53.235744Z" }, "scrolled": false }, @@ -1693,8 +1667,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:38.210684Z", - "start_time": "2020-09-18T10:31:38.199894Z" + "end_time": "2020-09-18T14:04:53.596197Z", + "start_time": "2020-09-18T14:04:53.592504Z" } }, "outputs": [], @@ -1707,8 +1681,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:38.471214Z", - "start_time": "2020-09-18T10:31:38.212116Z" + "end_time": "2020-09-18T14:04:54.024586Z", + "start_time": "2020-09-18T14:04:53.597962Z" }, "scrolled": false }, @@ -1953,8 +1927,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:38.475800Z", - "start_time": "2020-09-18T10:31:38.472658Z" + "end_time": "2020-09-18T14:04:54.033326Z", + "start_time": "2020-09-18T14:04:54.027466Z" } }, "outputs": [], @@ -1984,11 +1958,11 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 9, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:35.216899Z", - "start_time": "2020-09-18T10:32:35.197003Z" + "end_time": "2020-09-18T14:09:54.192351Z", + "start_time": "2020-09-18T14:09:54.169730Z" }, "init_cell": true }, @@ -1996,12 +1970,12 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "190fe4a506f64a4eb2054794d08ba41a", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "Button(description='Run the analysis', style=ButtonStyle())" + "HBox(children=(Button(description='Run the analysis', disabled=True, style=ButtonStyle()), Label(value='Run th…" ] }, "metadata": {}, @@ -2010,13 +1984,18 @@ ], "source": [ "analysis_5 = widgets.Button(description = 'Run the analysis')\n", + "text_5 = widgets.Label('Run the analysis in Sec. 4 to enable this button')\n", "output = widgets.Output()\n", + "analysis_5.disabled = True\n", "\n", - "display(analysis_5)\n", + "display(widgets.HBox([analysis_5, text_5]))\n", "\n", "def run_analysis_5(b):\n", " n_cells_exe = 12\n", " javascript('Jupyter.notebook.execute_cell_range(Jupyter.notebook.get_selected_index()+1,Jupyter.notebook.get_selected_index()+'+str(n_cells_exe)+')')\n", + " analysis_6.disabled = False\n", + " text_6.layout.visibility='Hidden'\n", + "\n", "analysis_5.on_click(run_analysis_5)" ] }, @@ -2025,8 +2004,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:43.718418Z", - "start_time": "2020-09-18T10:31:43.461184Z" + "end_time": "2020-09-18T14:04:59.139569Z", + "start_time": "2020-09-18T14:04:58.821005Z" }, "scrolled": false }, @@ -2244,8 +2223,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:43.954298Z", - "start_time": "2020-09-18T10:31:43.719998Z" + "end_time": "2020-09-18T14:04:59.357929Z", + "start_time": "2020-09-18T14:04:59.140835Z" } }, "outputs": [], @@ -2461,8 +2440,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:43.958934Z", - "start_time": "2020-09-18T10:31:43.955885Z" + "end_time": "2020-09-18T14:04:59.362583Z", + "start_time": "2020-09-18T14:04:59.359559Z" } }, "outputs": [], @@ -2475,8 +2454,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.325791Z", - "start_time": "2020-09-18T10:31:43.960310Z" + "end_time": "2020-09-18T14:05:00.702693Z", + "start_time": "2020-09-18T14:04:59.364032Z" }, "scrolled": false }, @@ -2515,8 +2494,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.330341Z", - "start_time": "2020-09-18T10:31:45.327349Z" + "end_time": "2020-09-18T14:05:00.707156Z", + "start_time": "2020-09-18T14:05:00.704117Z" } }, "outputs": [], @@ -2529,8 +2508,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.658173Z", - "start_time": "2020-09-18T10:31:45.332306Z" + "end_time": "2020-09-18T14:05:01.052897Z", + "start_time": "2020-09-18T14:05:00.709072Z" } }, "outputs": [], @@ -2792,8 +2771,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.662950Z", - "start_time": "2020-09-18T10:31:45.659575Z" + "end_time": "2020-09-18T14:05:01.056763Z", + "start_time": "2020-09-18T14:05:01.054000Z" } }, "outputs": [], @@ -2806,8 +2785,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.902122Z", - "start_time": "2020-09-18T10:31:45.664961Z" + "end_time": "2020-09-18T14:05:01.495080Z", + "start_time": "2020-09-18T14:05:01.058548Z" }, "scrolled": false }, @@ -3022,8 +3001,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:45.907291Z", - "start_time": "2020-09-18T10:31:45.903983Z" + "end_time": "2020-09-18T14:05:01.501577Z", + "start_time": "2020-09-18T14:05:01.496745Z" } }, "outputs": [], @@ -3036,8 +3015,8 @@ "execution_count": null, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:31:46.142203Z", - "start_time": "2020-09-18T10:31:45.908693Z" + "end_time": "2020-09-18T14:05:01.895237Z", + "start_time": "2020-09-18T14:05:01.503360Z" }, "scrolled": false }, @@ -3278,11 +3257,11 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 10, "metadata": { "ExecuteTime": { - "end_time": "2020-09-18T10:32:35.236710Z", - "start_time": "2020-09-18T10:32:35.218502Z" + "end_time": "2020-09-18T14:09:54.215046Z", + "start_time": "2020-09-18T14:09:54.194099Z" }, "init_cell": true }, @@ -3290,12 +3269,12 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "", + "model_id": "7259bc6c7d71481ebd54bb6513f5b7d1", "version_major": 2, "version_minor": 0 }, "text/plain": [ - "Button(description='Run the analysis', style=ButtonStyle())" + "HBox(children=(Button(description='Run the analysis', disabled=True, style=ButtonStyle()), Label(value='Run th…" ] }, "metadata": {}, @@ -3304,9 +3283,11 @@ ], "source": [ "analysis_6 = widgets.Button(description = 'Run the analysis')\n", + "text_6 = widgets.Label('Run the analysis in Sec. 5 to enable this button')\n", "output = widgets.Output()\n", + "analysis_6.disabled = True\n", "\n", - "display(analysis_6)\n", + "display(widgets.HBox([analysis_6, text_6]))\n", "\n", "def run_analysis_6(b):\n", " n_cells_exe = 6\n",