Skip to content

Instantly share code, notes, and snippets.

@freeman-lab
Created September 5, 2015 04:25
Show Gist options
  • Save freeman-lab/6567ee758a45779bd04e to your computer and use it in GitHub Desktop.
Save freeman-lab/6567ee758a45779bd04e to your computer and use it in GitHub Desktop.
Example using a for loop with Lightning in the notebook
Display the source blob
Display the rendered blob
Raw
{"nbformat_minor": 0, "cells": [{"execution_count": 1, "cell_type": "code", "source": "from lightning import Lightning", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 19, "cell_type": "code", "source": "lgn = Lightning(host='http://public.lightning-viz.org', ipython=True)", "outputs": [{"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<div style='margin-top:8px'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKUAAAEPCAYAAAAj2wTmAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACv1JREFUeNrsnUtyU0cYhRtVpim8A7QDmxUgVoC8AsvjDCxPM8GeZGp7kDHyChAriFgBeAUxKwhUFkBuhysQtmRfXfXjf3ynyqUCv/T4OOceuvvXk69fvwbkV3/+/u9BczP+7Y9fz6TcpwEvi2sg95qbWfMxl3S/gNK3Iox7jUt+BEokwSUvm5sX0lwSKP0COWluTto/Xkq7f08oOi6LzYf2jzdNdB/glKh2sVms/NVM4v0ESn9APr1TdIASVVO8dtxf+XOM7lugRLVc8qy5Obrz1zOp9xco7QM5bm5er/nUHChRraa9zhHfSY1uoLRfbOZ3io14lwRK24rgPXvgc0CJirpkjOwXGz4do/szUKKSQE7WNG01LgmU9oAcNTdvOsQ6UKIiQA47AHctPbqB0kfTVuWSQGlHsdjsP/I1XxqXBEpUxCXPmptXHb50ruUxAaX+pv2645ergZJNvnqBjEuIiw7Xkcvo3sMpUe5i0xVIVS4JlHq1DZDLIqRGxLc+l4yAHW3xLZ+a6B7ilCgXkNMtgVQX3UCpC8i4Wfeix7fOtD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EwDKPVCKe4UIvFNdL/UumKDU3aXphg8tgokUOqE8tpS0ya+N0f3MOg4Qqtqsy5Oab/gfAq2TlUCpfLoNtu0iW+90X0ocbwKTunXJc89AQmU8qGMTfvM2wviGkrh0y9Ez/sBSn8uKX7eD1Dmk9T/YnELpGsoBUf3sZXNukBpI7qvrC8hAqUuKONm3WlAPqEUOP3C5GZdoNRbcFTO+wFK21COvRcb91AKi+5Ty5t1gVKfS6qe9wOU9qC8kfoeNkBZPronAqI7btYdgR5QSnFJV5t1+8rNJl8hR2iPWbHBKSW55DlAAqUkKN953KwLlI9H96taTTuwhAiUglySYgOUG1Vr903crHsLZkB5N7qHzc1+pabNmjZQionua5o2UD6k0iXjPUuIQCkput3M+wFKHdFN0wZKca17QrEByseiu+QR2lNv836AUnbBYbMuUIq6nnQ77yenTG5da6P7Q4FiM6TY4JSSonsEkEApKbpZQgTKraJ7nLl1M+8HKEW5JPN+gFIUlGzWBcre0Z3jCC3zfoBSnEsy7wcoRUHJvB+gFBXdLCEC5U5KXUKY9wOUO7lk6iO0zPsBSlHXkmzWBUpxUE5p2nWlfpdQ4sFV54xXwSkluSTzfoBSVOtmCZH4Thbdw7D7G8jHYnPAeBWcUlJ0M+8HKEVFN5t1iW9R0X3Nig1OKSm6mfcDlKKi+yYw74f4zhDdfY/QfmmLDdeROKUYl2TeD1CKup5k3g/xLSq6ado4pajoZt4PUIqK7mWxYW8kUGaL7lHoPv0CIIFSXHSzWRcoRUU3836Askh0dz1Cy7wfoBTlkmzWBUpRUDLvByjFRTfzfoBSVOs+Zt6PHYlfZuxwhJYlRJxS1LUk836AUhSUzPshvkVFN5t1cUpxLskSIlCKgvKcJUTiu1Z0D8P9I7Q0bZxSlEuyWRcoq2typ9gwyJT4FhXdzyk2OKWk6GbeD1CKiu5rmjbxLSm647yfES8RTilB08C8H6AUpuiObNYlvkVF9wHjVXzrPwEGALbMqg0caTxkAAAAAElFTkSuQmCC' width='30px' height='35px' style='display: inline-block; padding-right: 10px'></img><span>Lightning initialized</span></div>"}, "metadata": {}}, {"output_type": "stream", "name": "stdout", "text": "Connected to server at http://public.lightning-viz.org\n"}, {"output_type": "display_data", "data": {"application/javascript": "(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error(\"Cannot find module '\"+o+\"'\")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){\nwindow.lightning = window.lightning || {};\nvar lightningCommMap = {};\n\nvar readCommData = function(commData, field) {\n try {\n return commData.content.data[field];\n } catch (err) {\n return;\n }\n};\n\n\nvar init_comm = function() {\n IPython.notebook.kernel.comm_manager.register_target('lightning', function(comm, data) {\n var id = readCommData(data, 'id');\n lightningCommMap[id] = comm;\n });\n\n window.lightning.comm_map = lightningCommMap;\n}\n\n\nif(IPython && IPython.notebook) {\n\n if(IPython.notebook.kernel) {\n init_comm();\n }\n\n IPython.notebook.events.on('kernel_connected.Kernel', init_comm);\n\n}\n\n\n},{}]},{},[1])\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi90bXAvYnVpbGRfZjg5ZTk3Y2QwYWY3N2MxMzFlMTgzMjdkNGIyYjZkYzMvbm9kZV9tb2R1bGVzL2d1bHAtYnJvd3NlcmlmeS9ub2RlX21vZHVsZXMvYnJvd3NlcmlmeS9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiL3RtcC9idWlsZF9mODllOTdjZDBhZjc3YzEzMWUxODMyN2Q0YjJiNmRjMy91aS9qcy9wYWdlcy9mYWtlXzZiYzc1NzkzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FDQUEsTUFBTSxDQUFDLFN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YXRhKGRhdGEsICdpZCcpO1xuICAgICAgICBsaWdodG5pbmdDb21tTWFwW2lkXSA9IGNvbW07XG4gICAgfSk7XG5cbiAgICB3aW5kb3cubGlnaHRuaW5nLmNvbW1fbWFwID0gbGlnaHRuaW5nQ29tbU1hcDtcbn1cblxuXG5pZihJUHl0aG9uICYmIElQeXRob24ubm90ZWJvb2spIHtcblxuICAgIGlmKElQeXRob24ubm90ZWJvb2sua2VybmVsKSB7XG4gICAgICAgIGluaXRfY29tbSgpO1xuICAgIH1cblxuICAgIElQeXRob24ubm90ZWJvb2suZXZlbnRzLm9uKCdrZXJuZWxfY29ubmVjdGVkLktlcm5lbCcsIGluaXRfY29tbSk7XG5cbn1cbiJdfQ==\n", "text/plain": "<IPython.core.display.Javascript object>"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}, {"execution_count": 20, "cell_type": "code", "source": "from numpy import random", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 21, "cell_type": "code", "source": "from IPython.display import display, Javascript, HTML", "outputs": [], "metadata": {"collapsed": true, "trusted": true}}, {"execution_count": 22, "cell_type": "code", "source": "for i in range(0,5):\n viz = lgn.line(random.randn(10))\n display(HTML(viz.get_html()))", "outputs": [{"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=10; IE=9; IE=8; IE=7; IE=EDGE\"/><meta charset=\"UTF-8\"/><link href=\"//fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/app.css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/dynamic/viz/?visualizations[]=line\"/><div id=\"lightning-body\" class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"7458a8f0-6c59-4320-977b-d205e09e3234\" class=\"feed-item-container\"><div data-type=\"lightning-line\" data-data=\"{&quot;series&quot;:[0.7792289316924651,-0.13108406453261515,1.0679501138345042,-1.1639939932814687,1.0759552705325748,-0.03203216404683425,-0.2467352665743667,-2.3047051972011414,-0.6897245707386158,0.02015508721083047]}\" data-images=\"null\" data-options=\"{&quot;width&quot;:600,&quot;zoom&quot;:true,&quot;description&quot;:null,&quot;height&quot;:null}\" id=\"viz-7458a8f0-6c59-4320-977b-d205e09e3234\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script>window.lightning = window.lightning || {};\nwindow.lightning.host = \"http://public.lightning-viz.org/\" || 'http://127.0.0.1:3000/';\nwindow.lightning.vizCount = (window.lightning.vizCount + 1) || 1;\nwindow.lightning.requiredVizTypes = window.lightning.requiredVizTypes || [];\nif(window.lightning.requiredVizTypes.indexOf(\"line\") === -1) {\n window.lightning.requiredVizTypes.push(\"line\");\n}\nwindow._require = window.require;\nwindow.require = undefined;\nwindow._define = window.define;\nwindow.define = undefined;</script><script src=\"http://public.lightning-viz.org/js/embed.js\"></script>"}, "metadata": {}}, {"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=10; IE=9; IE=8; IE=7; IE=EDGE\"/><meta charset=\"UTF-8\"/><link href=\"//fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/app.css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/dynamic/viz/?visualizations[]=line\"/><div id=\"lightning-body\" class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"f3a10fba-e6df-4d48-8bf4-361f76f1701d\" class=\"feed-item-container\"><div data-type=\"lightning-line\" data-data=\"{&quot;series&quot;:[-0.18062785545251434,0.3234878446950231,1.4295196638969152,-0.8004907559673664,1.5465056201953156,0.6245949114340715,-0.7372578318640053,-0.12526821508485297,0.06352023811037201,0.4057889578951546]}\" data-images=\"null\" data-options=\"{&quot;width&quot;:600,&quot;zoom&quot;:true,&quot;description&quot;:null,&quot;height&quot;:null}\" id=\"viz-f3a10fba-e6df-4d48-8bf4-361f76f1701d\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script>window.lightning = window.lightning || {};\nwindow.lightning.host = \"http://public.lightning-viz.org/\" || 'http://127.0.0.1:3000/';\nwindow.lightning.vizCount = (window.lightning.vizCount + 1) || 1;\nwindow.lightning.requiredVizTypes = window.lightning.requiredVizTypes || [];\nif(window.lightning.requiredVizTypes.indexOf(\"line\") === -1) {\n window.lightning.requiredVizTypes.push(\"line\");\n}\nwindow._require = window.require;\nwindow.require = undefined;\nwindow._define = window.define;\nwindow.define = undefined;</script><script src=\"http://public.lightning-viz.org/js/embed.js\"></script>"}, "metadata": {}}, {"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=10; IE=9; IE=8; IE=7; IE=EDGE\"/><meta charset=\"UTF-8\"/><link href=\"//fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/app.css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/dynamic/viz/?visualizations[]=line\"/><div id=\"lightning-body\" class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"48ab12d5-89c0-48de-9be0-4f7014d806f8\" class=\"feed-item-container\"><div data-type=\"lightning-line\" data-data=\"{&quot;series&quot;:[2.225992274506263,0.23706459453999834,-1.082067056194002,1.0965317521295666,-0.1988947840020893,0.9048414378441193,0.9145228890288425,1.0155365379743497,0.26083118059830807,-1.6012564237959346]}\" data-images=\"null\" data-options=\"{&quot;width&quot;:600,&quot;zoom&quot;:true,&quot;description&quot;:null,&quot;height&quot;:null}\" id=\"viz-48ab12d5-89c0-48de-9be0-4f7014d806f8\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script>window.lightning = window.lightning || {};\nwindow.lightning.host = \"http://public.lightning-viz.org/\" || 'http://127.0.0.1:3000/';\nwindow.lightning.vizCount = (window.lightning.vizCount + 1) || 1;\nwindow.lightning.requiredVizTypes = window.lightning.requiredVizTypes || [];\nif(window.lightning.requiredVizTypes.indexOf(\"line\") === -1) {\n window.lightning.requiredVizTypes.push(\"line\");\n}\nwindow._require = window.require;\nwindow.require = undefined;\nwindow._define = window.define;\nwindow.define = undefined;</script><script src=\"http://public.lightning-viz.org/js/embed.js\"></script>"}, "metadata": {}}, {"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=10; IE=9; IE=8; IE=7; IE=EDGE\"/><meta charset=\"UTF-8\"/><link href=\"//fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/app.css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/dynamic/viz/?visualizations[]=line\"/><div id=\"lightning-body\" class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"e71e752d-89f2-432d-9f9b-3dc3078db831\" class=\"feed-item-container\"><div data-type=\"lightning-line\" data-data=\"{&quot;series&quot;:[-1.1684506209967591,-0.2262475126069189,0.03335991206064265,0.01140263658420966,0.4105755065457261,0.32208119440512245,0.566782088530453,0.8144862480276333,-1.73563765119725,-0.26846089949747093]}\" data-images=\"null\" data-options=\"{&quot;width&quot;:600,&quot;zoom&quot;:true,&quot;description&quot;:null,&quot;height&quot;:null}\" id=\"viz-e71e752d-89f2-432d-9f9b-3dc3078db831\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script>window.lightning = window.lightning || {};\nwindow.lightning.host = \"http://public.lightning-viz.org/\" || 'http://127.0.0.1:3000/';\nwindow.lightning.vizCount = (window.lightning.vizCount + 1) || 1;\nwindow.lightning.requiredVizTypes = window.lightning.requiredVizTypes || [];\nif(window.lightning.requiredVizTypes.indexOf(\"line\") === -1) {\n window.lightning.requiredVizTypes.push(\"line\");\n}\nwindow._require = window.require;\nwindow.require = undefined;\nwindow._define = window.define;\nwindow.define = undefined;</script><script src=\"http://public.lightning-viz.org/js/embed.js\"></script>"}, "metadata": {}}, {"output_type": "display_data", "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=10; IE=9; IE=8; IE=7; IE=EDGE\"/><meta charset=\"UTF-8\"/><link href=\"//fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/app.css\"/><link rel=\"stylesheet\" href=\"http://public.lightning-viz.org/css/dynamic/viz/?visualizations[]=line\"/><div id=\"lightning-body\" class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"ced46185-b1cc-4541-aff4-c524fe24accd\" class=\"feed-item-container\"><div data-type=\"lightning-line\" data-data=\"{&quot;series&quot;:[-1.7691944637781578,0.2957909885528936,0.2074697230698805,0.31584457874029115,0.5262362357224674,-1.3105193237921873,-0.20677526445557814,0.10189562818392563,0.3951733820728186,0.01458068796928001]}\" data-images=\"null\" data-options=\"{&quot;width&quot;:600,&quot;zoom&quot;:true,&quot;description&quot;:null,&quot;height&quot;:null}\" id=\"viz-ced46185-b1cc-4541-aff4-c524fe24accd\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script>window.lightning = window.lightning || {};\nwindow.lightning.host = \"http://public.lightning-viz.org/\" || 'http://127.0.0.1:3000/';\nwindow.lightning.vizCount = (window.lightning.vizCount + 1) || 1;\nwindow.lightning.requiredVizTypes = window.lightning.requiredVizTypes || [];\nif(window.lightning.requiredVizTypes.indexOf(\"line\") === -1) {\n window.lightning.requiredVizTypes.push(\"line\");\n}\nwindow._require = window.require;\nwindow.require = undefined;\nwindow._define = window.define;\nwindow.define = undefined;</script><script src=\"http://public.lightning-viz.org/js/embed.js\"></script>"}, "metadata": {}}], "metadata": {"collapsed": false, "trusted": true}}], "nbformat": 4, "metadata": {"kernelspec": {"display_name": "Python 2", "name": "python2", "language": "python"}, "language_info": {"mimetype": "text/x-python", "nbconvert_exporter": "python", "version": "2.7.9", "name": "python", "file_extension": ".py", "pygments_lexer": "ipython2", "codemirror_mode": {"version": 2, "name": "ipython"}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment