diff --git a/notebooks/04_dashboard.ipynb b/notebooks/04_dashboard.ipynb
index bc235a8..96f23c9 100644
--- a/notebooks/04_dashboard.ipynb
+++ b/notebooks/04_dashboard.ipynb
@@ -18,1119 +18,10 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"id": "6fd3d4d1-f3bb-4c5d-8d1b-05e7432e2717",
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/javascript": [
- "(function(root) {\n",
- " function now() {\n",
- " return new Date();\n",
- " }\n",
- "\n",
- " var force = true;\n",
- " var py_version = '3.4.1'.replace('rc', '-rc.').replace('.dev', '-dev.');\n",
- " var reloading = false;\n",
- " var Bokeh = root.Bokeh;\n",
- "\n",
- " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n",
- " root._bokeh_timeout = Date.now() + 5000;\n",
- " root._bokeh_failed_load = false;\n",
- " }\n",
- "\n",
- " function run_callbacks() {\n",
- " try {\n",
- " root._bokeh_onload_callbacks.forEach(function(callback) {\n",
- " if (callback != null)\n",
- " callback();\n",
- " });\n",
- " } finally {\n",
- " delete root._bokeh_onload_callbacks;\n",
- " }\n",
- " console.debug(\"Bokeh: all callbacks have finished\");\n",
- " }\n",
- "\n",
- " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n",
- " if (css_urls == null) css_urls = [];\n",
- " if (js_urls == null) js_urls = [];\n",
- " if (js_modules == null) js_modules = [];\n",
- " if (js_exports == null) js_exports = {};\n",
- "\n",
- " root._bokeh_onload_callbacks.push(callback);\n",
- "\n",
- " if (root._bokeh_is_loading > 0) {\n",
- " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
- " return null;\n",
- " }\n",
- " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n",
- " run_callbacks();\n",
- " return null;\n",
- " }\n",
- " if (!reloading) {\n",
- " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
- " }\n",
- "\n",
- " function on_load() {\n",
- " root._bokeh_is_loading--;\n",
- " if (root._bokeh_is_loading === 0) {\n",
- " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
- " run_callbacks()\n",
- " }\n",
- " }\n",
- " window._bokeh_on_load = on_load\n",
- "\n",
- " function on_error() {\n",
- " console.error(\"failed to load \" + url);\n",
- " }\n",
- "\n",
- " var skip = [];\n",
- " if (window.requirejs) {\n",
- " window.requirejs.config({'packages': {}, 'paths': {}, 'shim': {}});\n",
- " root._bokeh_is_loading = css_urls.length + 0;\n",
- " } else {\n",
- " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n",
- " }\n",
- "\n",
- " var existing_stylesheets = []\n",
- " var links = document.getElementsByTagName('link')\n",
- " for (var i = 0; i < links.length; i++) {\n",
- " var link = links[i]\n",
- " if (link.href != null) {\n",
- "\texisting_stylesheets.push(link.href)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < css_urls.length; i++) {\n",
- " var url = css_urls[i];\n",
- " if (existing_stylesheets.indexOf(url) !== -1) {\n",
- "\ton_load()\n",
- "\tcontinue;\n",
- " }\n",
- " const element = document.createElement(\"link\");\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.rel = \"stylesheet\";\n",
- " element.type = \"text/css\";\n",
- " element.href = url;\n",
- " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
- " document.body.appendChild(element);\n",
- " } var existing_scripts = []\n",
- " var scripts = document.getElementsByTagName('script')\n",
- " for (var i = 0; i < scripts.length; i++) {\n",
- " var script = scripts[i]\n",
- " if (script.src != null) {\n",
- "\texisting_scripts.push(script.src)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < js_urls.length; i++) {\n",
- " var url = js_urls[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (var i = 0; i < js_modules.length; i++) {\n",
- " var url = js_modules[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (const name in js_exports) {\n",
- " var url = js_exports[name];\n",
- " if (skip.indexOf(url) >= 0 || root[name] != null) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " element.textContent = `\n",
- " import ${name} from \"${url}\"\n",
- " window.${name} = ${name}\n",
- " window._bokeh_on_load()\n",
- " `\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " if (!js_urls.length && !js_modules.length) {\n",
- " on_load()\n",
- " }\n",
- " };\n",
- "\n",
- " function inject_raw_css(css) {\n",
- " const element = document.createElement(\"style\");\n",
- " element.appendChild(document.createTextNode(css));\n",
- " document.body.appendChild(element);\n",
- " }\n",
- "\n",
- " var js_urls = [\"https://cdn.bokeh.org/bokeh/release/bokeh-3.4.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-gl-3.4.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.4.1.min.js\", \"https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.4.1.min.js\", \"https://cdn.holoviz.org/panel/1.4.2/dist/panel.min.js\"];\n",
- " var js_modules = [];\n",
- " var js_exports = {};\n",
- " var css_urls = [];\n",
- " var inline_js = [ function(Bokeh) {\n",
- " Bokeh.set_log_level(\"info\");\n",
- " },\n",
- "function(Bokeh) {} // ensure no trailing comma for IE\n",
- " ];\n",
- "\n",
- " function run_inline_js() {\n",
- " if ((root.Bokeh !== undefined) || (force === true)) {\n",
- " for (var i = 0; i < inline_js.length; i++) {\n",
- "\ttry {\n",
- " inline_js[i].call(root, root.Bokeh);\n",
- "\t} catch(e) {\n",
- "\t if (!reloading) {\n",
- "\t throw e;\n",
- "\t }\n",
- "\t}\n",
- " }\n",
- " // Cache old bokeh versions\n",
- " if (Bokeh != undefined && !reloading) {\n",
- "\tvar NewBokeh = root.Bokeh;\n",
- "\tif (Bokeh.versions === undefined) {\n",
- "\t Bokeh.versions = new Map();\n",
- "\t}\n",
- "\tif (NewBokeh.version !== Bokeh.version) {\n",
- "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n",
- "\t}\n",
- "\troot.Bokeh = Bokeh;\n",
- " }} else if (Date.now() < root._bokeh_timeout) {\n",
- " setTimeout(run_inline_js, 100);\n",
- " } else if (!root._bokeh_failed_load) {\n",
- " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
- " root._bokeh_failed_load = true;\n",
- " }\n",
- " root._bokeh_is_initializing = false\n",
- " }\n",
- "\n",
- " function load_or_wait() {\n",
- " // Implement a backoff loop that tries to ensure we do not load multiple\n",
- " // versions of Bokeh and its dependencies at the same time.\n",
- " // In recent versions we use the root._bokeh_is_initializing flag\n",
- " // to determine whether there is an ongoing attempt to initialize\n",
- " // bokeh, however for backward compatibility we also try to ensure\n",
- " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n",
- " // before older versions are fully initialized.\n",
- " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n",
- " root._bokeh_is_initializing = false;\n",
- " root._bokeh_onload_callbacks = undefined;\n",
- " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n",
- " load_or_wait();\n",
- " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n",
- " setTimeout(load_or_wait, 100);\n",
- " } else {\n",
- " root._bokeh_is_initializing = true\n",
- " root._bokeh_onload_callbacks = []\n",
- " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
- " if (!reloading && !bokeh_loaded) {\n",
- "\troot.Bokeh = undefined;\n",
- " }\n",
- " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n",
- "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
- "\trun_inline_js();\n",
- " });\n",
- " }\n",
- " }\n",
- " // Give older versions of the autoload script a head-start to ensure\n",
- " // they initialize before we start loading newer version.\n",
- " setTimeout(load_or_wait, 100)\n",
- "}(window));"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/javascript": [
- "\n",
- "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n",
- " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n",
- "}\n",
- "\n",
- "\n",
- " function JupyterCommManager() {\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n",
- " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " comm_manager.register_target(comm_id, function(comm) {\n",
- " comm.on_msg(msg_handler);\n",
- " });\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n",
- " comm.onMsg = msg_handler;\n",
- " });\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " console.log(message)\n",
- " var content = {data: message.data, comm_id};\n",
- " var buffers = []\n",
- " for (var buffer of message.buffers || []) {\n",
- " buffers.push(new DataView(buffer))\n",
- " }\n",
- " var metadata = message.metadata || {};\n",
- " var msg = {content, buffers, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " })\n",
- " }\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n",
- " if (comm_id in window.PyViz.comms) {\n",
- " return window.PyViz.comms[comm_id];\n",
- " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n",
- " if (msg_handler) {\n",
- " comm.on_msg(msg_handler);\n",
- " }\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n",
- " comm.open();\n",
- " if (msg_handler) {\n",
- " comm.onMsg = msg_handler;\n",
- " }\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " var comm_promise = google.colab.kernel.comms.open(comm_id)\n",
- " comm_promise.then((comm) => {\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " if (msg_handler) {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " var content = {data: message.data};\n",
- " var metadata = message.metadata || {comm_id};\n",
- " var msg = {content, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " }) \n",
- " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n",
- " return comm_promise.then((comm) => {\n",
- " comm.send(data, metadata, buffers, disposeOnDone);\n",
- " });\n",
- " };\n",
- " var comm = {\n",
- " send: sendClosure\n",
- " };\n",
- " }\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " return comm;\n",
- " }\n",
- " window.PyViz.comm_manager = new JupyterCommManager();\n",
- " \n",
- "\n",
- "\n",
- "var JS_MIME_TYPE = 'application/javascript';\n",
- "var HTML_MIME_TYPE = 'text/html';\n",
- "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n",
- "var CLASS_NAME = 'output';\n",
- "\n",
- "/**\n",
- " * Render data to the DOM node\n",
- " */\n",
- "function render(props, node) {\n",
- " var div = document.createElement(\"div\");\n",
- " var script = document.createElement(\"script\");\n",
- " node.appendChild(div);\n",
- " node.appendChild(script);\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when a new output is added\n",
- " */\n",
- "function handle_add_output(event, handle) {\n",
- " var output_area = handle.output_area;\n",
- " var output = handle.output;\n",
- " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
- " return\n",
- " }\n",
- " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
- " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
- " if (id !== undefined) {\n",
- " var nchildren = toinsert.length;\n",
- " var html_node = toinsert[nchildren-1].children[0];\n",
- " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var scripts = [];\n",
- " var nodelist = html_node.querySelectorAll(\"script\");\n",
- " for (var i in nodelist) {\n",
- " if (nodelist.hasOwnProperty(i)) {\n",
- " scripts.push(nodelist[i])\n",
- " }\n",
- " }\n",
- "\n",
- " scripts.forEach( function (oldScript) {\n",
- " var newScript = document.createElement(\"script\");\n",
- " var attrs = [];\n",
- " var nodemap = oldScript.attributes;\n",
- " for (var j in nodemap) {\n",
- " if (nodemap.hasOwnProperty(j)) {\n",
- " attrs.push(nodemap[j])\n",
- " }\n",
- " }\n",
- " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n",
- " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n",
- " oldScript.parentNode.replaceChild(newScript, oldScript);\n",
- " });\n",
- " if (JS_MIME_TYPE in output.data) {\n",
- " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n",
- " }\n",
- " output_area._hv_plot_id = id;\n",
- " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n",
- " window.PyViz.plot_index[id] = Bokeh.index[id];\n",
- " } else {\n",
- " window.PyViz.plot_index[id] = null;\n",
- " }\n",
- " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
- " var bk_div = document.createElement(\"div\");\n",
- " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var script_attrs = bk_div.children[0].attributes;\n",
- " for (var i = 0; i < script_attrs.length; i++) {\n",
- " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
- " }\n",
- " // store reference to server id on output_area\n",
- " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when an output is cleared or removed\n",
- " */\n",
- "function handle_clear_output(event, handle) {\n",
- " var id = handle.cell.output_area._hv_plot_id;\n",
- " var server_id = handle.cell.output_area._bokeh_server_id;\n",
- " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n",
- " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n",
- " if (server_id !== null) {\n",
- " comm.send({event_type: 'server_delete', 'id': server_id});\n",
- " return;\n",
- " } else if (comm !== null) {\n",
- " comm.send({event_type: 'delete', 'id': id});\n",
- " }\n",
- " delete PyViz.plot_index[id];\n",
- " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n",
- " var doc = window.Bokeh.index[id].model.document\n",
- " doc.clear();\n",
- " const i = window.Bokeh.documents.indexOf(doc);\n",
- " if (i > -1) {\n",
- " window.Bokeh.documents.splice(i, 1);\n",
- " }\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle kernel restart event\n",
- " */\n",
- "function handle_kernel_cleanup(event, handle) {\n",
- " delete PyViz.comms[\"hv-extension-comm\"];\n",
- " window.PyViz.plot_index = {}\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle update_display_data messages\n",
- " */\n",
- "function handle_update_output(event, handle) {\n",
- " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n",
- " handle_add_output(event, handle)\n",
- "}\n",
- "\n",
- "function register_renderer(events, OutputArea) {\n",
- " function append_mime(data, metadata, element) {\n",
- " // create a DOM node to render to\n",
- " var toinsert = this.create_output_subarea(\n",
- " metadata,\n",
- " CLASS_NAME,\n",
- " EXEC_MIME_TYPE\n",
- " );\n",
- " this.keyboard_manager.register_events(toinsert);\n",
- " // Render to node\n",
- " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
- " render(props, toinsert[0]);\n",
- " element.append(toinsert);\n",
- " return toinsert\n",
- " }\n",
- "\n",
- " events.on('output_added.OutputArea', handle_add_output);\n",
- " events.on('output_updated.OutputArea', handle_update_output);\n",
- " events.on('clear_output.CodeCell', handle_clear_output);\n",
- " events.on('delete.Cell', handle_clear_output);\n",
- " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n",
- "\n",
- " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
- " safe: true,\n",
- " index: 0\n",
- " });\n",
- "}\n",
- "\n",
- "if (window.Jupyter !== undefined) {\n",
- " try {\n",
- " var events = require('base/js/events');\n",
- " var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
- " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
- " register_renderer(events, OutputArea);\n",
- " }\n",
- " } catch(err) {\n",
- " }\n",
- "}\n"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "
\n",
- ""
- ]
- },
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "p1002"
- }
- },
- "output_type": "display_data"
- },
- {
- "data": {
- "application/javascript": [
- "(function(root) {\n",
- " function now() {\n",
- " return new Date();\n",
- " }\n",
- "\n",
- " var force = true;\n",
- " var py_version = '3.4.1'.replace('rc', '-rc.').replace('.dev', '-dev.');\n",
- " var reloading = true;\n",
- " var Bokeh = root.Bokeh;\n",
- "\n",
- " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n",
- " root._bokeh_timeout = Date.now() + 5000;\n",
- " root._bokeh_failed_load = false;\n",
- " }\n",
- "\n",
- " function run_callbacks() {\n",
- " try {\n",
- " root._bokeh_onload_callbacks.forEach(function(callback) {\n",
- " if (callback != null)\n",
- " callback();\n",
- " });\n",
- " } finally {\n",
- " delete root._bokeh_onload_callbacks;\n",
- " }\n",
- " console.debug(\"Bokeh: all callbacks have finished\");\n",
- " }\n",
- "\n",
- " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n",
- " if (css_urls == null) css_urls = [];\n",
- " if (js_urls == null) js_urls = [];\n",
- " if (js_modules == null) js_modules = [];\n",
- " if (js_exports == null) js_exports = {};\n",
- "\n",
- " root._bokeh_onload_callbacks.push(callback);\n",
- "\n",
- " if (root._bokeh_is_loading > 0) {\n",
- " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
- " return null;\n",
- " }\n",
- " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n",
- " run_callbacks();\n",
- " return null;\n",
- " }\n",
- " if (!reloading) {\n",
- " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
- " }\n",
- "\n",
- " function on_load() {\n",
- " root._bokeh_is_loading--;\n",
- " if (root._bokeh_is_loading === 0) {\n",
- " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
- " run_callbacks()\n",
- " }\n",
- " }\n",
- " window._bokeh_on_load = on_load\n",
- "\n",
- " function on_error() {\n",
- " console.error(\"failed to load \" + url);\n",
- " }\n",
- "\n",
- " var skip = [];\n",
- " if (window.requirejs) {\n",
- " window.requirejs.config({'packages': {}, 'paths': {}, 'shim': {}});\n",
- " root._bokeh_is_loading = css_urls.length + 0;\n",
- " } else {\n",
- " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n",
- " }\n",
- "\n",
- " var existing_stylesheets = []\n",
- " var links = document.getElementsByTagName('link')\n",
- " for (var i = 0; i < links.length; i++) {\n",
- " var link = links[i]\n",
- " if (link.href != null) {\n",
- "\texisting_stylesheets.push(link.href)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < css_urls.length; i++) {\n",
- " var url = css_urls[i];\n",
- " if (existing_stylesheets.indexOf(url) !== -1) {\n",
- "\ton_load()\n",
- "\tcontinue;\n",
- " }\n",
- " const element = document.createElement(\"link\");\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.rel = \"stylesheet\";\n",
- " element.type = \"text/css\";\n",
- " element.href = url;\n",
- " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
- " document.body.appendChild(element);\n",
- " } var existing_scripts = []\n",
- " var scripts = document.getElementsByTagName('script')\n",
- " for (var i = 0; i < scripts.length; i++) {\n",
- " var script = scripts[i]\n",
- " if (script.src != null) {\n",
- "\texisting_scripts.push(script.src)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < js_urls.length; i++) {\n",
- " var url = js_urls[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (var i = 0; i < js_modules.length; i++) {\n",
- " var url = js_modules[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (const name in js_exports) {\n",
- " var url = js_exports[name];\n",
- " if (skip.indexOf(url) >= 0 || root[name] != null) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " element.textContent = `\n",
- " import ${name} from \"${url}\"\n",
- " window.${name} = ${name}\n",
- " window._bokeh_on_load()\n",
- " `\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " if (!js_urls.length && !js_modules.length) {\n",
- " on_load()\n",
- " }\n",
- " };\n",
- "\n",
- " function inject_raw_css(css) {\n",
- " const element = document.createElement(\"style\");\n",
- " element.appendChild(document.createTextNode(css));\n",
- " document.body.appendChild(element);\n",
- " }\n",
- "\n",
- " var js_urls = [];\n",
- " var js_modules = [];\n",
- " var js_exports = {};\n",
- " var css_urls = [];\n",
- " var inline_js = [ function(Bokeh) {\n",
- " Bokeh.set_log_level(\"info\");\n",
- " },\n",
- "function(Bokeh) {} // ensure no trailing comma for IE\n",
- " ];\n",
- "\n",
- " function run_inline_js() {\n",
- " if ((root.Bokeh !== undefined) || (force === true)) {\n",
- " for (var i = 0; i < inline_js.length; i++) {\n",
- "\ttry {\n",
- " inline_js[i].call(root, root.Bokeh);\n",
- "\t} catch(e) {\n",
- "\t if (!reloading) {\n",
- "\t throw e;\n",
- "\t }\n",
- "\t}\n",
- " }\n",
- " // Cache old bokeh versions\n",
- " if (Bokeh != undefined && !reloading) {\n",
- "\tvar NewBokeh = root.Bokeh;\n",
- "\tif (Bokeh.versions === undefined) {\n",
- "\t Bokeh.versions = new Map();\n",
- "\t}\n",
- "\tif (NewBokeh.version !== Bokeh.version) {\n",
- "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n",
- "\t}\n",
- "\troot.Bokeh = Bokeh;\n",
- " }} else if (Date.now() < root._bokeh_timeout) {\n",
- " setTimeout(run_inline_js, 100);\n",
- " } else if (!root._bokeh_failed_load) {\n",
- " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
- " root._bokeh_failed_load = true;\n",
- " }\n",
- " root._bokeh_is_initializing = false\n",
- " }\n",
- "\n",
- " function load_or_wait() {\n",
- " // Implement a backoff loop that tries to ensure we do not load multiple\n",
- " // versions of Bokeh and its dependencies at the same time.\n",
- " // In recent versions we use the root._bokeh_is_initializing flag\n",
- " // to determine whether there is an ongoing attempt to initialize\n",
- " // bokeh, however for backward compatibility we also try to ensure\n",
- " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n",
- " // before older versions are fully initialized.\n",
- " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n",
- " root._bokeh_is_initializing = false;\n",
- " root._bokeh_onload_callbacks = undefined;\n",
- " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n",
- " load_or_wait();\n",
- " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n",
- " setTimeout(load_or_wait, 100);\n",
- " } else {\n",
- " root._bokeh_is_initializing = true\n",
- " root._bokeh_onload_callbacks = []\n",
- " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
- " if (!reloading && !bokeh_loaded) {\n",
- "\troot.Bokeh = undefined;\n",
- " }\n",
- " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n",
- "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
- "\trun_inline_js();\n",
- " });\n",
- " }\n",
- " }\n",
- " // Give older versions of the autoload script a head-start to ensure\n",
- " // they initialize before we start loading newer version.\n",
- " setTimeout(load_or_wait, 100)\n",
- "}(window));"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/javascript": [
- "\n",
- "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n",
- " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n",
- "}\n",
- "\n",
- "\n",
- " function JupyterCommManager() {\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n",
- " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " comm_manager.register_target(comm_id, function(comm) {\n",
- " comm.on_msg(msg_handler);\n",
- " });\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n",
- " comm.onMsg = msg_handler;\n",
- " });\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " console.log(message)\n",
- " var content = {data: message.data, comm_id};\n",
- " var buffers = []\n",
- " for (var buffer of message.buffers || []) {\n",
- " buffers.push(new DataView(buffer))\n",
- " }\n",
- " var metadata = message.metadata || {};\n",
- " var msg = {content, buffers, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " })\n",
- " }\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n",
- " if (comm_id in window.PyViz.comms) {\n",
- " return window.PyViz.comms[comm_id];\n",
- " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n",
- " if (msg_handler) {\n",
- " comm.on_msg(msg_handler);\n",
- " }\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n",
- " comm.open();\n",
- " if (msg_handler) {\n",
- " comm.onMsg = msg_handler;\n",
- " }\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " var comm_promise = google.colab.kernel.comms.open(comm_id)\n",
- " comm_promise.then((comm) => {\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " if (msg_handler) {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " var content = {data: message.data};\n",
- " var metadata = message.metadata || {comm_id};\n",
- " var msg = {content, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " }) \n",
- " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n",
- " return comm_promise.then((comm) => {\n",
- " comm.send(data, metadata, buffers, disposeOnDone);\n",
- " });\n",
- " };\n",
- " var comm = {\n",
- " send: sendClosure\n",
- " };\n",
- " }\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " return comm;\n",
- " }\n",
- " window.PyViz.comm_manager = new JupyterCommManager();\n",
- " \n",
- "\n",
- "\n",
- "var JS_MIME_TYPE = 'application/javascript';\n",
- "var HTML_MIME_TYPE = 'text/html';\n",
- "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n",
- "var CLASS_NAME = 'output';\n",
- "\n",
- "/**\n",
- " * Render data to the DOM node\n",
- " */\n",
- "function render(props, node) {\n",
- " var div = document.createElement(\"div\");\n",
- " var script = document.createElement(\"script\");\n",
- " node.appendChild(div);\n",
- " node.appendChild(script);\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when a new output is added\n",
- " */\n",
- "function handle_add_output(event, handle) {\n",
- " var output_area = handle.output_area;\n",
- " var output = handle.output;\n",
- " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
- " return\n",
- " }\n",
- " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
- " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
- " if (id !== undefined) {\n",
- " var nchildren = toinsert.length;\n",
- " var html_node = toinsert[nchildren-1].children[0];\n",
- " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var scripts = [];\n",
- " var nodelist = html_node.querySelectorAll(\"script\");\n",
- " for (var i in nodelist) {\n",
- " if (nodelist.hasOwnProperty(i)) {\n",
- " scripts.push(nodelist[i])\n",
- " }\n",
- " }\n",
- "\n",
- " scripts.forEach( function (oldScript) {\n",
- " var newScript = document.createElement(\"script\");\n",
- " var attrs = [];\n",
- " var nodemap = oldScript.attributes;\n",
- " for (var j in nodemap) {\n",
- " if (nodemap.hasOwnProperty(j)) {\n",
- " attrs.push(nodemap[j])\n",
- " }\n",
- " }\n",
- " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n",
- " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n",
- " oldScript.parentNode.replaceChild(newScript, oldScript);\n",
- " });\n",
- " if (JS_MIME_TYPE in output.data) {\n",
- " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n",
- " }\n",
- " output_area._hv_plot_id = id;\n",
- " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n",
- " window.PyViz.plot_index[id] = Bokeh.index[id];\n",
- " } else {\n",
- " window.PyViz.plot_index[id] = null;\n",
- " }\n",
- " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
- " var bk_div = document.createElement(\"div\");\n",
- " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var script_attrs = bk_div.children[0].attributes;\n",
- " for (var i = 0; i < script_attrs.length; i++) {\n",
- " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
- " }\n",
- " // store reference to server id on output_area\n",
- " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when an output is cleared or removed\n",
- " */\n",
- "function handle_clear_output(event, handle) {\n",
- " var id = handle.cell.output_area._hv_plot_id;\n",
- " var server_id = handle.cell.output_area._bokeh_server_id;\n",
- " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n",
- " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n",
- " if (server_id !== null) {\n",
- " comm.send({event_type: 'server_delete', 'id': server_id});\n",
- " return;\n",
- " } else if (comm !== null) {\n",
- " comm.send({event_type: 'delete', 'id': id});\n",
- " }\n",
- " delete PyViz.plot_index[id];\n",
- " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n",
- " var doc = window.Bokeh.index[id].model.document\n",
- " doc.clear();\n",
- " const i = window.Bokeh.documents.indexOf(doc);\n",
- " if (i > -1) {\n",
- " window.Bokeh.documents.splice(i, 1);\n",
- " }\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle kernel restart event\n",
- " */\n",
- "function handle_kernel_cleanup(event, handle) {\n",
- " delete PyViz.comms[\"hv-extension-comm\"];\n",
- " window.PyViz.plot_index = {}\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle update_display_data messages\n",
- " */\n",
- "function handle_update_output(event, handle) {\n",
- " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n",
- " handle_add_output(event, handle)\n",
- "}\n",
- "\n",
- "function register_renderer(events, OutputArea) {\n",
- " function append_mime(data, metadata, element) {\n",
- " // create a DOM node to render to\n",
- " var toinsert = this.create_output_subarea(\n",
- " metadata,\n",
- " CLASS_NAME,\n",
- " EXEC_MIME_TYPE\n",
- " );\n",
- " this.keyboard_manager.register_events(toinsert);\n",
- " // Render to node\n",
- " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
- " render(props, toinsert[0]);\n",
- " element.append(toinsert);\n",
- " return toinsert\n",
- " }\n",
- "\n",
- " events.on('output_added.OutputArea', handle_add_output);\n",
- " events.on('output_updated.OutputArea', handle_update_output);\n",
- " events.on('clear_output.CodeCell', handle_clear_output);\n",
- " events.on('delete.Cell', handle_clear_output);\n",
- " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n",
- "\n",
- " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
- " safe: true,\n",
- " index: 0\n",
- " });\n",
- "}\n",
- "\n",
- "if (window.Jupyter !== undefined) {\n",
- " try {\n",
- " var events = require('base/js/events');\n",
- " var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
- " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
- " register_renderer(events, OutputArea);\n",
- " }\n",
- " } catch(err) {\n",
- " }\n",
- "}\n"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"import xarray as xr\n",
"import holoviews as hv\n",
@@ -1165,475 +56,10 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": null,
"id": "935a789a-110d-4805-97f7-4ddb28aab20f",
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "
<xarray.Dataset> Size: 349MB\n",
- "Dimensions: (time: 84, latitude: 721, longitude: 1440)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 6kB 90.0 89.75 89.5 ... -89.5 -89.75 -90.0\n",
- " * longitude (longitude) float64 12kB 0.0 0.25 0.5 0.75 ... 359.2 359.5 359.8\n",
- " * time (time) datetime64[ns] 672B 1940-12-31 1941-12-31 ... 2023-12-31\n",
- "Data variables:\n",
- " VAR_2T (time, latitude, longitude) float32 349MB ...
- time: 84
- latitude: 721
- longitude: 1440
latitude
(latitude)
float64
90.0 89.75 89.5 ... -89.75 -90.0
- long_name :
- latitude
- short_name :
- lat
- units :
- degrees_north
array([ 90. , 89.75, 89.5 , ..., -89.5 , -89.75, -90. ])
longitude
(longitude)
float64
0.0 0.25 0.5 ... 359.2 359.5 359.8
- long_name :
- longitude
- short_name :
- lon
- units :
- degrees_east
array([0.0000e+00, 2.5000e-01, 5.0000e-01, ..., 3.5925e+02, 3.5950e+02,\n",
- " 3.5975e+02])
time
(time)
datetime64[ns]
1940-12-31 ... 2023-12-31
array(['1940-12-31T00:00:00.000000000', '1941-12-31T00:00:00.000000000',\n",
- " '1942-12-31T00:00:00.000000000', '1943-12-31T00:00:00.000000000',\n",
- " '1944-12-31T00:00:00.000000000', '1945-12-31T00:00:00.000000000',\n",
- " '1946-12-31T00:00:00.000000000', '1947-12-31T00:00:00.000000000',\n",
- " '1948-12-31T00:00:00.000000000', '1949-12-31T00:00:00.000000000',\n",
- " '1950-12-31T00:00:00.000000000', '1951-12-31T00:00:00.000000000',\n",
- " '1952-12-31T00:00:00.000000000', '1953-12-31T00:00:00.000000000',\n",
- " '1954-12-31T00:00:00.000000000', '1955-12-31T00:00:00.000000000',\n",
- " '1956-12-31T00:00:00.000000000', '1957-12-31T00:00:00.000000000',\n",
- " '1958-12-31T00:00:00.000000000', '1959-12-31T00:00:00.000000000',\n",
- " '1960-12-31T00:00:00.000000000', '1961-12-31T00:00:00.000000000',\n",
- " '1962-12-31T00:00:00.000000000', '1963-12-31T00:00:00.000000000',\n",
- " '1964-12-31T00:00:00.000000000', '1965-12-31T00:00:00.000000000',\n",
- " '1966-12-31T00:00:00.000000000', '1967-12-31T00:00:00.000000000',\n",
- " '1968-12-31T00:00:00.000000000', '1969-12-31T00:00:00.000000000',\n",
- " '1970-12-31T00:00:00.000000000', '1971-12-31T00:00:00.000000000',\n",
- " '1972-12-31T00:00:00.000000000', '1973-12-31T00:00:00.000000000',\n",
- " '1974-12-31T00:00:00.000000000', '1975-12-31T00:00:00.000000000',\n",
- " '1976-12-31T00:00:00.000000000', '1977-12-31T00:00:00.000000000',\n",
- " '1978-12-31T00:00:00.000000000', '1979-12-31T00:00:00.000000000',\n",
- " '1980-12-31T00:00:00.000000000', '1981-12-31T00:00:00.000000000',\n",
- " '1982-12-31T00:00:00.000000000', '1983-12-31T00:00:00.000000000',\n",
- " '1984-12-31T00:00:00.000000000', '1985-12-31T00:00:00.000000000',\n",
- " '1986-12-31T00:00:00.000000000', '1987-12-31T00:00:00.000000000',\n",
- " '1988-12-31T00:00:00.000000000', '1989-12-31T00:00:00.000000000',\n",
- " '1990-12-31T00:00:00.000000000', '1991-12-31T00:00:00.000000000',\n",
- " '1992-12-31T00:00:00.000000000', '1993-12-31T00:00:00.000000000',\n",
- " '1994-12-31T00:00:00.000000000', '1995-12-31T00:00:00.000000000',\n",
- " '1996-12-31T00:00:00.000000000', '1997-12-31T00:00:00.000000000',\n",
- " '1998-12-31T00:00:00.000000000', '1999-12-31T00:00:00.000000000',\n",
- " '2000-12-31T00:00:00.000000000', '2001-12-31T00:00:00.000000000',\n",
- " '2002-12-31T00:00:00.000000000', '2003-12-31T00:00:00.000000000',\n",
- " '2004-12-31T00:00:00.000000000', '2005-12-31T00:00:00.000000000',\n",
- " '2006-12-31T00:00:00.000000000', '2007-12-31T00:00:00.000000000',\n",
- " '2008-12-31T00:00:00.000000000', '2009-12-31T00:00:00.000000000',\n",
- " '2010-12-31T00:00:00.000000000', '2011-12-31T00:00:00.000000000',\n",
- " '2012-12-31T00:00:00.000000000', '2013-12-31T00:00:00.000000000',\n",
- " '2014-12-31T00:00:00.000000000', '2015-12-31T00:00:00.000000000',\n",
- " '2016-12-31T00:00:00.000000000', '2017-12-31T00:00:00.000000000',\n",
- " '2018-12-31T00:00:00.000000000', '2019-12-31T00:00:00.000000000',\n",
- " '2020-12-31T00:00:00.000000000', '2021-12-31T00:00:00.000000000',\n",
- " '2022-12-31T00:00:00.000000000', '2023-12-31T00:00:00.000000000'],\n",
- " dtype='datetime64[ns]')
PandasIndex
PandasIndex(Index([ 90.0, 89.75, 89.5, 89.25, 89.0, 88.75, 88.5, 88.25, 88.0,\n",
- " 87.75,\n",
- " ...\n",
- " -87.75, -88.0, -88.25, -88.5, -88.75, -89.0, -89.25, -89.5, -89.75,\n",
- " -90.0],\n",
- " dtype='float64', name='latitude', length=721))
PandasIndex
PandasIndex(Index([ 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0,\n",
- " 2.25,\n",
- " ...\n",
- " 357.5, 357.75, 358.0, 358.25, 358.5, 358.75, 359.0, 359.25, 359.5,\n",
- " 359.75],\n",
- " dtype='float64', name='longitude', length=1440))
PandasIndex
PandasIndex(DatetimeIndex(['1940-12-31', '1941-12-31', '1942-12-31', '1943-12-31',\n",
- " '1944-12-31', '1945-12-31', '1946-12-31', '1947-12-31',\n",
- " '1948-12-31', '1949-12-31', '1950-12-31', '1951-12-31',\n",
- " '1952-12-31', '1953-12-31', '1954-12-31', '1955-12-31',\n",
- " '1956-12-31', '1957-12-31', '1958-12-31', '1959-12-31',\n",
- " '1960-12-31', '1961-12-31', '1962-12-31', '1963-12-31',\n",
- " '1964-12-31', '1965-12-31', '1966-12-31', '1967-12-31',\n",
- " '1968-12-31', '1969-12-31', '1970-12-31', '1971-12-31',\n",
- " '1972-12-31', '1973-12-31', '1974-12-31', '1975-12-31',\n",
- " '1976-12-31', '1977-12-31', '1978-12-31', '1979-12-31',\n",
- " '1980-12-31', '1981-12-31', '1982-12-31', '1983-12-31',\n",
- " '1984-12-31', '1985-12-31', '1986-12-31', '1987-12-31',\n",
- " '1988-12-31', '1989-12-31', '1990-12-31', '1991-12-31',\n",
- " '1992-12-31', '1993-12-31', '1994-12-31', '1995-12-31',\n",
- " '1996-12-31', '1997-12-31', '1998-12-31', '1999-12-31',\n",
- " '2000-12-31', '2001-12-31', '2002-12-31', '2003-12-31',\n",
- " '2004-12-31', '2005-12-31', '2006-12-31', '2007-12-31',\n",
- " '2008-12-31', '2009-12-31', '2010-12-31', '2011-12-31',\n",
- " '2012-12-31', '2013-12-31', '2014-12-31', '2015-12-31',\n",
- " '2016-12-31', '2017-12-31', '2018-12-31', '2019-12-31',\n",
- " '2020-12-31', '2021-12-31', '2022-12-31', '2023-12-31'],\n",
- " dtype='datetime64[ns]', name='time', freq=None))
"
- ],
- "text/plain": [
- " Size: 349MB\n",
- "Dimensions: (time: 84, latitude: 721, longitude: 1440)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 6kB 90.0 89.75 89.5 ... -89.5 -89.75 -90.0\n",
- " * longitude (longitude) float64 12kB 0.0 0.25 0.5 0.75 ... 359.2 359.5 359.8\n",
- " * time (time) datetime64[ns] 672B 1940-12-31 1941-12-31 ... 2023-12-31\n",
- "Data variables:\n",
- " VAR_2T (time, latitude, longitude) float32 349MB ..."
- ]
- },
- "execution_count": 2,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"rda_url = \"https://data.rda.ucar.edu/\"\n",
"annual_means = rda_url + \"pythia_era5_24/annual_means/\"\n",
@@ -1643,7 +69,7 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": null,
"id": "539e125c-2adb-4794-8a88-c9f64743bed2",
"metadata": {},
"outputs": [],
@@ -1670,100 +96,10 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": null,
"id": "8ba31298-49db-40a7-b350-af18f4af1eed",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')"
- ]
- },
- "execution_count": 4,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "2e8c29d2-0d16-4612-9654-129d9cafc6c9"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"\n",
"w_var = pn.widgets.Select(name=\"Data Variable\", options=list(xrds.data_vars))\n",
@@ -1785,101 +121,10 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": null,
"id": "ccd540e0-ab5d-4000-bd31-ca8cb2851e0c",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', 'Contour'], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')"
- ]
- },
- "execution_count": 5,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "6b494b75-15aa-42ba-a842-3a0bfcd57be0"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"w_cmap = pn.widgets.Select(name=\"Colormap\", options=[\"inferno\", \"plasma\", \"coolwarm\"])\n",
"\n",
@@ -1907,105 +152,10 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": null,
"id": "e80e4978",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Column\n",
- " [0] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')\n",
- " [1] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', 'Contour'], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')"
- ]
- },
- "execution_count": 6,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "4dc6bb85-b4cd-4fdc-972b-ed6994922a90"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"controls = pn.Column(dataset_controls, plot_controls)\n",
"controls"
@@ -2013,98 +163,10 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": null,
"id": "105a7b77-65ee-494b-97a6-df3380da7cef",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Player(align='center', end=6, interval=300, loop_policy='loop', name='Year', width_policy='fit')"
- ]
- },
- "execution_count": 7,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "b63beb53-98fc-46b9-9928-ff1321f995fb"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"w_player = pn.widgets.Player(\n",
" value=0,\n",
@@ -2129,7 +191,7 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": null,
"id": "7aa8c290-097f-46bd-8265-c8f952b37ea5",
"metadata": {},
"outputs": [],
@@ -2170,114 +232,10 @@
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": null,
"id": "a55a2b57-ef02-4046-8534-f740e5bbb72e",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Row\n",
- " [0] Column\n",
- " [0] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')\n",
- " [1] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', 'Contour'], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')\n",
- " [1] Column\n",
- " [0] HoloViews(DynamicMap, height=300, sizing_mode='fixed', width=700)\n",
- " [1] Player(align='center', end=6, interval=300, loop_policy='loop', name='Year', width_policy='fit')"
- ]
- },
- "execution_count": 9,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "0cd9c357-2368-4fbc-a381-b1195d5274ff"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"\n",
"app = pn.Row(\n",
diff --git a/notebooks/04_dashboard_panel.ipynb b/notebooks/04_dashboard_panel.ipynb
index 22fd446..7392c83 100644
--- a/notebooks/04_dashboard_panel.ipynb
+++ b/notebooks/04_dashboard_panel.ipynb
@@ -18,609 +18,10 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": null,
"id": "6fd3d4d1-f3bb-4c5d-8d1b-05e7432e2717",
"metadata": {},
- "outputs": [
- {
- "data": {
- "application/javascript": [
- "(function(root) {\n",
- " function now() {\n",
- " return new Date();\n",
- " }\n",
- "\n",
- " var force = true;\n",
- " var py_version = '3.4.1'.replace('rc', '-rc.').replace('.dev', '-dev.');\n",
- " var reloading = true;\n",
- " var Bokeh = root.Bokeh;\n",
- "\n",
- " if (typeof (root._bokeh_timeout) === \"undefined\" || force) {\n",
- " root._bokeh_timeout = Date.now() + 5000;\n",
- " root._bokeh_failed_load = false;\n",
- " }\n",
- "\n",
- " function run_callbacks() {\n",
- " try {\n",
- " root._bokeh_onload_callbacks.forEach(function(callback) {\n",
- " if (callback != null)\n",
- " callback();\n",
- " });\n",
- " } finally {\n",
- " delete root._bokeh_onload_callbacks;\n",
- " }\n",
- " console.debug(\"Bokeh: all callbacks have finished\");\n",
- " }\n",
- "\n",
- " function load_libs(css_urls, js_urls, js_modules, js_exports, callback) {\n",
- " if (css_urls == null) css_urls = [];\n",
- " if (js_urls == null) js_urls = [];\n",
- " if (js_modules == null) js_modules = [];\n",
- " if (js_exports == null) js_exports = {};\n",
- "\n",
- " root._bokeh_onload_callbacks.push(callback);\n",
- "\n",
- " if (root._bokeh_is_loading > 0) {\n",
- " console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
- " return null;\n",
- " }\n",
- " if (js_urls.length === 0 && js_modules.length === 0 && Object.keys(js_exports).length === 0) {\n",
- " run_callbacks();\n",
- " return null;\n",
- " }\n",
- " if (!reloading) {\n",
- " console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
- " }\n",
- "\n",
- " function on_load() {\n",
- " root._bokeh_is_loading--;\n",
- " if (root._bokeh_is_loading === 0) {\n",
- " console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
- " run_callbacks()\n",
- " }\n",
- " }\n",
- " window._bokeh_on_load = on_load\n",
- "\n",
- " function on_error() {\n",
- " console.error(\"failed to load \" + url);\n",
- " }\n",
- "\n",
- " var skip = [];\n",
- " if (window.requirejs) {\n",
- " window.requirejs.config({'packages': {}, 'paths': {}, 'shim': {}});\n",
- " root._bokeh_is_loading = css_urls.length + 0;\n",
- " } else {\n",
- " root._bokeh_is_loading = css_urls.length + js_urls.length + js_modules.length + Object.keys(js_exports).length;\n",
- " }\n",
- "\n",
- " var existing_stylesheets = []\n",
- " var links = document.getElementsByTagName('link')\n",
- " for (var i = 0; i < links.length; i++) {\n",
- " var link = links[i]\n",
- " if (link.href != null) {\n",
- "\texisting_stylesheets.push(link.href)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < css_urls.length; i++) {\n",
- " var url = css_urls[i];\n",
- " if (existing_stylesheets.indexOf(url) !== -1) {\n",
- "\ton_load()\n",
- "\tcontinue;\n",
- " }\n",
- " const element = document.createElement(\"link\");\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.rel = \"stylesheet\";\n",
- " element.type = \"text/css\";\n",
- " element.href = url;\n",
- " console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
- " document.body.appendChild(element);\n",
- " } var existing_scripts = []\n",
- " var scripts = document.getElementsByTagName('script')\n",
- " for (var i = 0; i < scripts.length; i++) {\n",
- " var script = scripts[i]\n",
- " if (script.src != null) {\n",
- "\texisting_scripts.push(script.src)\n",
- " }\n",
- " }\n",
- " for (var i = 0; i < js_urls.length; i++) {\n",
- " var url = js_urls[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (var i = 0; i < js_modules.length; i++) {\n",
- " var url = js_modules[i];\n",
- " if (skip.indexOf(url) !== -1 || existing_scripts.indexOf(url) !== -1) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onload = on_load;\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.src = url;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " for (const name in js_exports) {\n",
- " var url = js_exports[name];\n",
- " if (skip.indexOf(url) >= 0 || root[name] != null) {\n",
- "\tif (!window.requirejs) {\n",
- "\t on_load();\n",
- "\t}\n",
- "\tcontinue;\n",
- " }\n",
- " var element = document.createElement('script');\n",
- " element.onerror = on_error;\n",
- " element.async = false;\n",
- " element.type = \"module\";\n",
- " console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
- " element.textContent = `\n",
- " import ${name} from \"${url}\"\n",
- " window.${name} = ${name}\n",
- " window._bokeh_on_load()\n",
- " `\n",
- " document.head.appendChild(element);\n",
- " }\n",
- " if (!js_urls.length && !js_modules.length) {\n",
- " on_load()\n",
- " }\n",
- " };\n",
- "\n",
- " function inject_raw_css(css) {\n",
- " const element = document.createElement(\"style\");\n",
- " element.appendChild(document.createTextNode(css));\n",
- " document.body.appendChild(element);\n",
- " }\n",
- "\n",
- " var js_urls = [];\n",
- " var js_modules = [];\n",
- " var js_exports = {};\n",
- " var css_urls = [];\n",
- " var inline_js = [ function(Bokeh) {\n",
- " Bokeh.set_log_level(\"info\");\n",
- " },\n",
- "function(Bokeh) {} // ensure no trailing comma for IE\n",
- " ];\n",
- "\n",
- " function run_inline_js() {\n",
- " if ((root.Bokeh !== undefined) || (force === true)) {\n",
- " for (var i = 0; i < inline_js.length; i++) {\n",
- "\ttry {\n",
- " inline_js[i].call(root, root.Bokeh);\n",
- "\t} catch(e) {\n",
- "\t if (!reloading) {\n",
- "\t throw e;\n",
- "\t }\n",
- "\t}\n",
- " }\n",
- " // Cache old bokeh versions\n",
- " if (Bokeh != undefined && !reloading) {\n",
- "\tvar NewBokeh = root.Bokeh;\n",
- "\tif (Bokeh.versions === undefined) {\n",
- "\t Bokeh.versions = new Map();\n",
- "\t}\n",
- "\tif (NewBokeh.version !== Bokeh.version) {\n",
- "\t Bokeh.versions.set(NewBokeh.version, NewBokeh)\n",
- "\t}\n",
- "\troot.Bokeh = Bokeh;\n",
- " }} else if (Date.now() < root._bokeh_timeout) {\n",
- " setTimeout(run_inline_js, 100);\n",
- " } else if (!root._bokeh_failed_load) {\n",
- " console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
- " root._bokeh_failed_load = true;\n",
- " }\n",
- " root._bokeh_is_initializing = false\n",
- " }\n",
- "\n",
- " function load_or_wait() {\n",
- " // Implement a backoff loop that tries to ensure we do not load multiple\n",
- " // versions of Bokeh and its dependencies at the same time.\n",
- " // In recent versions we use the root._bokeh_is_initializing flag\n",
- " // to determine whether there is an ongoing attempt to initialize\n",
- " // bokeh, however for backward compatibility we also try to ensure\n",
- " // that we do not start loading a newer (Panel>=1.0 and Bokeh>3) version\n",
- " // before older versions are fully initialized.\n",
- " if (root._bokeh_is_initializing && Date.now() > root._bokeh_timeout) {\n",
- " root._bokeh_is_initializing = false;\n",
- " root._bokeh_onload_callbacks = undefined;\n",
- " console.log(\"Bokeh: BokehJS was loaded multiple times but one version failed to initialize.\");\n",
- " load_or_wait();\n",
- " } else if (root._bokeh_is_initializing || (typeof root._bokeh_is_initializing === \"undefined\" && root._bokeh_onload_callbacks !== undefined)) {\n",
- " setTimeout(load_or_wait, 100);\n",
- " } else {\n",
- " root._bokeh_is_initializing = true\n",
- " root._bokeh_onload_callbacks = []\n",
- " var bokeh_loaded = Bokeh != null && (Bokeh.version === py_version || (Bokeh.versions !== undefined && Bokeh.versions.has(py_version)));\n",
- " if (!reloading && !bokeh_loaded) {\n",
- "\troot.Bokeh = undefined;\n",
- " }\n",
- " load_libs(css_urls, js_urls, js_modules, js_exports, function() {\n",
- "\tconsole.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
- "\trun_inline_js();\n",
- " });\n",
- " }\n",
- " }\n",
- " // Give older versions of the autoload script a head-start to ensure\n",
- " // they initialize before we start loading newer version.\n",
- " setTimeout(load_or_wait, 100)\n",
- "}(window));"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/javascript": [
- "\n",
- "if ((window.PyViz === undefined) || (window.PyViz instanceof HTMLElement)) {\n",
- " window.PyViz = {comms: {}, comm_status:{}, kernels:{}, receivers: {}, plot_index: []}\n",
- "}\n",
- "\n",
- "\n",
- " function JupyterCommManager() {\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.register_target = function(plot_id, comm_id, msg_handler) {\n",
- " if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " comm_manager.register_target(comm_id, function(comm) {\n",
- " comm.on_msg(msg_handler);\n",
- " });\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " window.PyViz.kernels[plot_id].registerCommTarget(comm_id, function(comm) {\n",
- " comm.onMsg = msg_handler;\n",
- " });\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " google.colab.kernel.comms.registerTarget(comm_id, (comm) => {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " console.log(message)\n",
- " var content = {data: message.data, comm_id};\n",
- " var buffers = []\n",
- " for (var buffer of message.buffers || []) {\n",
- " buffers.push(new DataView(buffer))\n",
- " }\n",
- " var metadata = message.metadata || {};\n",
- " var msg = {content, buffers, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " })\n",
- " }\n",
- " }\n",
- "\n",
- " JupyterCommManager.prototype.get_client_comm = function(plot_id, comm_id, msg_handler) {\n",
- " if (comm_id in window.PyViz.comms) {\n",
- " return window.PyViz.comms[comm_id];\n",
- " } else if (window.comm_manager || ((window.Jupyter !== undefined) && (Jupyter.notebook.kernel != null))) {\n",
- " var comm_manager = window.comm_manager || Jupyter.notebook.kernel.comm_manager;\n",
- " var comm = comm_manager.new_comm(comm_id, {}, {}, {}, comm_id);\n",
- " if (msg_handler) {\n",
- " comm.on_msg(msg_handler);\n",
- " }\n",
- " } else if ((plot_id in window.PyViz.kernels) && (window.PyViz.kernels[plot_id])) {\n",
- " var comm = window.PyViz.kernels[plot_id].connectToComm(comm_id);\n",
- " comm.open();\n",
- " if (msg_handler) {\n",
- " comm.onMsg = msg_handler;\n",
- " }\n",
- " } else if (typeof google != 'undefined' && google.colab.kernel != null) {\n",
- " var comm_promise = google.colab.kernel.comms.open(comm_id)\n",
- " comm_promise.then((comm) => {\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " if (msg_handler) {\n",
- " var messages = comm.messages[Symbol.asyncIterator]();\n",
- " function processIteratorResult(result) {\n",
- " var message = result.value;\n",
- " var content = {data: message.data};\n",
- " var metadata = message.metadata || {comm_id};\n",
- " var msg = {content, metadata}\n",
- " msg_handler(msg);\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " return messages.next().then(processIteratorResult);\n",
- " }\n",
- " }) \n",
- " var sendClosure = (data, metadata, buffers, disposeOnDone) => {\n",
- " return comm_promise.then((comm) => {\n",
- " comm.send(data, metadata, buffers, disposeOnDone);\n",
- " });\n",
- " };\n",
- " var comm = {\n",
- " send: sendClosure\n",
- " };\n",
- " }\n",
- " window.PyViz.comms[comm_id] = comm;\n",
- " return comm;\n",
- " }\n",
- " window.PyViz.comm_manager = new JupyterCommManager();\n",
- " \n",
- "\n",
- "\n",
- "var JS_MIME_TYPE = 'application/javascript';\n",
- "var HTML_MIME_TYPE = 'text/html';\n",
- "var EXEC_MIME_TYPE = 'application/vnd.holoviews_exec.v0+json';\n",
- "var CLASS_NAME = 'output';\n",
- "\n",
- "/**\n",
- " * Render data to the DOM node\n",
- " */\n",
- "function render(props, node) {\n",
- " var div = document.createElement(\"div\");\n",
- " var script = document.createElement(\"script\");\n",
- " node.appendChild(div);\n",
- " node.appendChild(script);\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when a new output is added\n",
- " */\n",
- "function handle_add_output(event, handle) {\n",
- " var output_area = handle.output_area;\n",
- " var output = handle.output;\n",
- " if ((output.data == undefined) || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
- " return\n",
- " }\n",
- " var id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
- " var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
- " if (id !== undefined) {\n",
- " var nchildren = toinsert.length;\n",
- " var html_node = toinsert[nchildren-1].children[0];\n",
- " html_node.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var scripts = [];\n",
- " var nodelist = html_node.querySelectorAll(\"script\");\n",
- " for (var i in nodelist) {\n",
- " if (nodelist.hasOwnProperty(i)) {\n",
- " scripts.push(nodelist[i])\n",
- " }\n",
- " }\n",
- "\n",
- " scripts.forEach( function (oldScript) {\n",
- " var newScript = document.createElement(\"script\");\n",
- " var attrs = [];\n",
- " var nodemap = oldScript.attributes;\n",
- " for (var j in nodemap) {\n",
- " if (nodemap.hasOwnProperty(j)) {\n",
- " attrs.push(nodemap[j])\n",
- " }\n",
- " }\n",
- " attrs.forEach(function(attr) { newScript.setAttribute(attr.name, attr.value) });\n",
- " newScript.appendChild(document.createTextNode(oldScript.innerHTML));\n",
- " oldScript.parentNode.replaceChild(newScript, oldScript);\n",
- " });\n",
- " if (JS_MIME_TYPE in output.data) {\n",
- " toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];\n",
- " }\n",
- " output_area._hv_plot_id = id;\n",
- " if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {\n",
- " window.PyViz.plot_index[id] = Bokeh.index[id];\n",
- " } else {\n",
- " window.PyViz.plot_index[id] = null;\n",
- " }\n",
- " } else if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
- " var bk_div = document.createElement(\"div\");\n",
- " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
- " var script_attrs = bk_div.children[0].attributes;\n",
- " for (var i = 0; i < script_attrs.length; i++) {\n",
- " toinsert[toinsert.length - 1].childNodes[1].setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
- " }\n",
- " // store reference to server id on output_area\n",
- " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle when an output is cleared or removed\n",
- " */\n",
- "function handle_clear_output(event, handle) {\n",
- " var id = handle.cell.output_area._hv_plot_id;\n",
- " var server_id = handle.cell.output_area._bokeh_server_id;\n",
- " if (((id === undefined) || !(id in PyViz.plot_index)) && (server_id !== undefined)) { return; }\n",
- " var comm = window.PyViz.comm_manager.get_client_comm(\"hv-extension-comm\", \"hv-extension-comm\", function () {});\n",
- " if (server_id !== null) {\n",
- " comm.send({event_type: 'server_delete', 'id': server_id});\n",
- " return;\n",
- " } else if (comm !== null) {\n",
- " comm.send({event_type: 'delete', 'id': id});\n",
- " }\n",
- " delete PyViz.plot_index[id];\n",
- " if ((window.Bokeh !== undefined) & (id in window.Bokeh.index)) {\n",
- " var doc = window.Bokeh.index[id].model.document\n",
- " doc.clear();\n",
- " const i = window.Bokeh.documents.indexOf(doc);\n",
- " if (i > -1) {\n",
- " window.Bokeh.documents.splice(i, 1);\n",
- " }\n",
- " }\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle kernel restart event\n",
- " */\n",
- "function handle_kernel_cleanup(event, handle) {\n",
- " delete PyViz.comms[\"hv-extension-comm\"];\n",
- " window.PyViz.plot_index = {}\n",
- "}\n",
- "\n",
- "/**\n",
- " * Handle update_display_data messages\n",
- " */\n",
- "function handle_update_output(event, handle) {\n",
- " handle_clear_output(event, {cell: {output_area: handle.output_area}})\n",
- " handle_add_output(event, handle)\n",
- "}\n",
- "\n",
- "function register_renderer(events, OutputArea) {\n",
- " function append_mime(data, metadata, element) {\n",
- " // create a DOM node to render to\n",
- " var toinsert = this.create_output_subarea(\n",
- " metadata,\n",
- " CLASS_NAME,\n",
- " EXEC_MIME_TYPE\n",
- " );\n",
- " this.keyboard_manager.register_events(toinsert);\n",
- " // Render to node\n",
- " var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
- " render(props, toinsert[0]);\n",
- " element.append(toinsert);\n",
- " return toinsert\n",
- " }\n",
- "\n",
- " events.on('output_added.OutputArea', handle_add_output);\n",
- " events.on('output_updated.OutputArea', handle_update_output);\n",
- " events.on('clear_output.CodeCell', handle_clear_output);\n",
- " events.on('delete.Cell', handle_clear_output);\n",
- " events.on('kernel_ready.Kernel', handle_kernel_cleanup);\n",
- "\n",
- " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
- " safe: true,\n",
- " index: 0\n",
- " });\n",
- "}\n",
- "\n",
- "if (window.Jupyter !== undefined) {\n",
- " try {\n",
- " var events = require('base/js/events');\n",
- " var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
- " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
- " register_renderer(events, OutputArea);\n",
- " }\n",
- " } catch(err) {\n",
- " }\n",
- "}\n"
- ],
- "application/vnd.holoviews_load.v0+json": ""
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "text/html": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ]
- },
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "a03ac553-5eae-4455-a521-dc9579d947d1"
- }
- },
- "output_type": "display_data"
- }
- ],
+ "outputs": [],
"source": [
"import xarray as xr\n",
"import holoviews as hv\n",
@@ -649,475 +50,10 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": null,
"id": "935a789a-110d-4805-97f7-4ddb28aab20f",
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/html": [
- "\n",
- "
<xarray.Dataset> Size: 349MB\n",
- "Dimensions: (time: 84, latitude: 721, longitude: 1440)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 6kB 90.0 89.75 89.5 ... -89.5 -89.75 -90.0\n",
- " * longitude (longitude) float64 12kB 0.0 0.25 0.5 0.75 ... 359.2 359.5 359.8\n",
- " * time (time) datetime64[ns] 672B 1940-12-31 1941-12-31 ... 2023-12-31\n",
- "Data variables:\n",
- " VAR_2T (time, latitude, longitude) float32 349MB ...
- time: 84
- latitude: 721
- longitude: 1440
latitude
(latitude)
float64
90.0 89.75 89.5 ... -89.75 -90.0
- long_name :
- latitude
- short_name :
- lat
- units :
- degrees_north
array([ 90. , 89.75, 89.5 , ..., -89.5 , -89.75, -90. ])
longitude
(longitude)
float64
0.0 0.25 0.5 ... 359.2 359.5 359.8
- long_name :
- longitude
- short_name :
- lon
- units :
- degrees_east
array([0.0000e+00, 2.5000e-01, 5.0000e-01, ..., 3.5925e+02, 3.5950e+02,\n",
- " 3.5975e+02])
time
(time)
datetime64[ns]
1940-12-31 ... 2023-12-31
array(['1940-12-31T00:00:00.000000000', '1941-12-31T00:00:00.000000000',\n",
- " '1942-12-31T00:00:00.000000000', '1943-12-31T00:00:00.000000000',\n",
- " '1944-12-31T00:00:00.000000000', '1945-12-31T00:00:00.000000000',\n",
- " '1946-12-31T00:00:00.000000000', '1947-12-31T00:00:00.000000000',\n",
- " '1948-12-31T00:00:00.000000000', '1949-12-31T00:00:00.000000000',\n",
- " '1950-12-31T00:00:00.000000000', '1951-12-31T00:00:00.000000000',\n",
- " '1952-12-31T00:00:00.000000000', '1953-12-31T00:00:00.000000000',\n",
- " '1954-12-31T00:00:00.000000000', '1955-12-31T00:00:00.000000000',\n",
- " '1956-12-31T00:00:00.000000000', '1957-12-31T00:00:00.000000000',\n",
- " '1958-12-31T00:00:00.000000000', '1959-12-31T00:00:00.000000000',\n",
- " '1960-12-31T00:00:00.000000000', '1961-12-31T00:00:00.000000000',\n",
- " '1962-12-31T00:00:00.000000000', '1963-12-31T00:00:00.000000000',\n",
- " '1964-12-31T00:00:00.000000000', '1965-12-31T00:00:00.000000000',\n",
- " '1966-12-31T00:00:00.000000000', '1967-12-31T00:00:00.000000000',\n",
- " '1968-12-31T00:00:00.000000000', '1969-12-31T00:00:00.000000000',\n",
- " '1970-12-31T00:00:00.000000000', '1971-12-31T00:00:00.000000000',\n",
- " '1972-12-31T00:00:00.000000000', '1973-12-31T00:00:00.000000000',\n",
- " '1974-12-31T00:00:00.000000000', '1975-12-31T00:00:00.000000000',\n",
- " '1976-12-31T00:00:00.000000000', '1977-12-31T00:00:00.000000000',\n",
- " '1978-12-31T00:00:00.000000000', '1979-12-31T00:00:00.000000000',\n",
- " '1980-12-31T00:00:00.000000000', '1981-12-31T00:00:00.000000000',\n",
- " '1982-12-31T00:00:00.000000000', '1983-12-31T00:00:00.000000000',\n",
- " '1984-12-31T00:00:00.000000000', '1985-12-31T00:00:00.000000000',\n",
- " '1986-12-31T00:00:00.000000000', '1987-12-31T00:00:00.000000000',\n",
- " '1988-12-31T00:00:00.000000000', '1989-12-31T00:00:00.000000000',\n",
- " '1990-12-31T00:00:00.000000000', '1991-12-31T00:00:00.000000000',\n",
- " '1992-12-31T00:00:00.000000000', '1993-12-31T00:00:00.000000000',\n",
- " '1994-12-31T00:00:00.000000000', '1995-12-31T00:00:00.000000000',\n",
- " '1996-12-31T00:00:00.000000000', '1997-12-31T00:00:00.000000000',\n",
- " '1998-12-31T00:00:00.000000000', '1999-12-31T00:00:00.000000000',\n",
- " '2000-12-31T00:00:00.000000000', '2001-12-31T00:00:00.000000000',\n",
- " '2002-12-31T00:00:00.000000000', '2003-12-31T00:00:00.000000000',\n",
- " '2004-12-31T00:00:00.000000000', '2005-12-31T00:00:00.000000000',\n",
- " '2006-12-31T00:00:00.000000000', '2007-12-31T00:00:00.000000000',\n",
- " '2008-12-31T00:00:00.000000000', '2009-12-31T00:00:00.000000000',\n",
- " '2010-12-31T00:00:00.000000000', '2011-12-31T00:00:00.000000000',\n",
- " '2012-12-31T00:00:00.000000000', '2013-12-31T00:00:00.000000000',\n",
- " '2014-12-31T00:00:00.000000000', '2015-12-31T00:00:00.000000000',\n",
- " '2016-12-31T00:00:00.000000000', '2017-12-31T00:00:00.000000000',\n",
- " '2018-12-31T00:00:00.000000000', '2019-12-31T00:00:00.000000000',\n",
- " '2020-12-31T00:00:00.000000000', '2021-12-31T00:00:00.000000000',\n",
- " '2022-12-31T00:00:00.000000000', '2023-12-31T00:00:00.000000000'],\n",
- " dtype='datetime64[ns]')
PandasIndex
PandasIndex(Index([ 90.0, 89.75, 89.5, 89.25, 89.0, 88.75, 88.5, 88.25, 88.0,\n",
- " 87.75,\n",
- " ...\n",
- " -87.75, -88.0, -88.25, -88.5, -88.75, -89.0, -89.25, -89.5, -89.75,\n",
- " -90.0],\n",
- " dtype='float64', name='latitude', length=721))
PandasIndex
PandasIndex(Index([ 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0,\n",
- " 2.25,\n",
- " ...\n",
- " 357.5, 357.75, 358.0, 358.25, 358.5, 358.75, 359.0, 359.25, 359.5,\n",
- " 359.75],\n",
- " dtype='float64', name='longitude', length=1440))
PandasIndex
PandasIndex(DatetimeIndex(['1940-12-31', '1941-12-31', '1942-12-31', '1943-12-31',\n",
- " '1944-12-31', '1945-12-31', '1946-12-31', '1947-12-31',\n",
- " '1948-12-31', '1949-12-31', '1950-12-31', '1951-12-31',\n",
- " '1952-12-31', '1953-12-31', '1954-12-31', '1955-12-31',\n",
- " '1956-12-31', '1957-12-31', '1958-12-31', '1959-12-31',\n",
- " '1960-12-31', '1961-12-31', '1962-12-31', '1963-12-31',\n",
- " '1964-12-31', '1965-12-31', '1966-12-31', '1967-12-31',\n",
- " '1968-12-31', '1969-12-31', '1970-12-31', '1971-12-31',\n",
- " '1972-12-31', '1973-12-31', '1974-12-31', '1975-12-31',\n",
- " '1976-12-31', '1977-12-31', '1978-12-31', '1979-12-31',\n",
- " '1980-12-31', '1981-12-31', '1982-12-31', '1983-12-31',\n",
- " '1984-12-31', '1985-12-31', '1986-12-31', '1987-12-31',\n",
- " '1988-12-31', '1989-12-31', '1990-12-31', '1991-12-31',\n",
- " '1992-12-31', '1993-12-31', '1994-12-31', '1995-12-31',\n",
- " '1996-12-31', '1997-12-31', '1998-12-31', '1999-12-31',\n",
- " '2000-12-31', '2001-12-31', '2002-12-31', '2003-12-31',\n",
- " '2004-12-31', '2005-12-31', '2006-12-31', '2007-12-31',\n",
- " '2008-12-31', '2009-12-31', '2010-12-31', '2011-12-31',\n",
- " '2012-12-31', '2013-12-31', '2014-12-31', '2015-12-31',\n",
- " '2016-12-31', '2017-12-31', '2018-12-31', '2019-12-31',\n",
- " '2020-12-31', '2021-12-31', '2022-12-31', '2023-12-31'],\n",
- " dtype='datetime64[ns]', name='time', freq=None))
"
- ],
- "text/plain": [
- " Size: 349MB\n",
- "Dimensions: (time: 84, latitude: 721, longitude: 1440)\n",
- "Coordinates:\n",
- " * latitude (latitude) float64 6kB 90.0 89.75 89.5 ... -89.5 -89.75 -90.0\n",
- " * longitude (longitude) float64 12kB 0.0 0.25 0.5 0.75 ... 359.2 359.5 359.8\n",
- " * time (time) datetime64[ns] 672B 1940-12-31 1941-12-31 ... 2023-12-31\n",
- "Data variables:\n",
- " VAR_2T (time, latitude, longitude) float32 349MB ..."
- ]
- },
- "execution_count": 6,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"rda_url = \"https://data.rda.ucar.edu/\"\n",
"annual_means = rda_url + \"pythia_era5_24/annual_means/\"\n",
@@ -1127,7 +63,7 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": null,
"id": "539e125c-2adb-4794-8a88-c9f64743bed2",
"metadata": {},
"outputs": [],
@@ -1154,105 +90,10 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": null,
"id": "8ba31298-49db-40a7-b350-af18f4af1eed",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')"
- ]
- },
- "execution_count": 8,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "8a90826b-daa7-4c5c-835c-41b2f079496f"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"\n",
"w_var = pn.widgets.Select(name=\"Data Variable\", options=list(xrds.data_vars))\n",
@@ -1274,106 +115,10 @@
},
{
"cell_type": "code",
- "execution_count": 13,
+ "execution_count": null,
"id": "ccd540e0-ab5d-4000-bd31-ca8cb2851e0c",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', 'Contour'], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')"
- ]
- },
- "execution_count": 13,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "747d474b-2cb5-4c5b-a9d0-ebc8015ab473"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"w_cmap = pn.widgets.Select(name=\"Colormap\", options=[\"inferno\", \"plasma\", \"coolwarm\"])\n",
"\n",
@@ -1401,110 +146,10 @@
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": null,
"id": "e80e4978",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Column\n",
- " [0] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')\n",
- " [1] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', ...], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')"
- ]
- },
- "execution_count": 10,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "3f5608ef-072d-481a-8330-827b67767f85"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"controls = pn.Column(dataset_controls, plot_controls)\n",
"controls"
@@ -1512,103 +157,10 @@
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": null,
"id": "105a7b77-65ee-494b-97a6-df3380da7cef",
"metadata": {},
- "outputs": [
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Player(align='center', end=6, interval=300, loop_policy='loop', name='Year', width_policy='fit')"
- ]
- },
- "execution_count": 11,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "b8498a2f-429c-4b48-8453-862029bc5e93"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"w_player = pn.widgets.Player(\n",
" value=0,\n",
@@ -1633,7 +185,7 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": null,
"id": "7aa8c290-097f-46bd-8265-c8f952b37ea5",
"metadata": {},
"outputs": [],
@@ -1674,126 +226,10 @@
},
{
"cell_type": "code",
- "execution_count": 12,
+ "execution_count": null,
"id": "a55a2b57-ef02-4046-8534-f740e5bbb72e",
"metadata": {},
- "outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.\n"
- ]
- },
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {},
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "application/vnd.holoviews_exec.v0+json": "",
- "text/html": [
- "\n",
- ""
- ],
- "text/plain": [
- "Row\n",
- " [0] Column\n",
- " [0] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Data Variable', options=['VAR_2T'], value='VAR_2T')\n",
- " [1] WidgetBox\n",
- " [0] Markdown(str)\n",
- " [1] Select(name='Plot Type', options=['Color Plot', ...], value='Color Plot')\n",
- " [2] Select(name='Colormap', options=['inferno', 'plasma', ...], value='inferno')\n",
- " [1] Column\n",
- " [0] HoloViews(DynamicMap, height=300, sizing_mode='fixed', width=700)\n",
- " [1] Player(align='center', end=6, interval=300, loop_policy='loop', name='Year', width_policy='fit')"
- ]
- },
- "execution_count": 12,
- "metadata": {
- "application/vnd.holoviews_exec.v0+json": {
- "id": "8bf976a8-1cb3-4eb4-b24c-dfc63b50ec7e"
- }
- },
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"\n",
"app = pn.Row(\n",