\n",
+ "

\n",
+ "\n",
+ "\n",
+ "\n",
+ "\n",
+ "

\n",
+ " \n",
+ "\n",
+ "\n",
+ "
\n"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "application/javascript": [
+ "function HoloViewsWidget() {\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.init_slider = function(init_val){\n",
+ " if(this.load_json) {\n",
+ " this.from_json()\n",
+ " } else {\n",
+ " this.update_cache();\n",
+ " }\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.populate_cache = function(idx){\n",
+ " this.cache[idx].innerHTML = this.frames[idx];\n",
+ " if (this.embed) {\n",
+ " delete this.frames[idx];\n",
+ " }\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.process_error = function(msg){\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.from_json = function() {\n",
+ " var data_url = this.json_path + this.id + '.json';\n",
+ " $.getJSON(data_url, $.proxy(function(json_data) {\n",
+ " this.frames = json_data;\n",
+ " this.update_cache();\n",
+ " this.update(0);\n",
+ " }, this));\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.dynamic_update = function(current){\n",
+ " if (current === undefined) {\n",
+ " return\n",
+ " }\n",
+ " this.current = current;\n",
+ " if (this.comm) {\n",
+ " var msg = {comm_id: this.id+'_client', content: current}\n",
+ " this.comm.send(msg);\n",
+ " }\n",
+ "}\n",
+ "\n",
+ "HoloViewsWidget.prototype.update_cache = function(force){\n",
+ " var frame_len = Object.keys(this.frames).length;\n",
+ " for (var i=0; i