Last active
August 29, 2015 14:07
-
-
Save mathisonian/da7f7e85060e5d2ad994 to your computer and use it in GitHub Desktop.
lightning-ipython
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:e05d2d5470815ae7f6638cdbb22803ba4f7c3087f807c81aef5f58b4000f5787" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"from lightning import Lightning\n", | |
"lightning = Lightning(host=\"http://lightning.mathisonian.com\", ipython=True)\n", | |
"lightning.create_session()" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 13, | |
"text": [ | |
"<lightning.session.Session at 0x10f12a650>" | |
] | |
} | |
], | |
"prompt_number": 13 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"from random import randrange, uniform\n", | |
"x = [randrange(100) for x in xrange(50)]" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [], | |
"prompt_number": 14 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"lightning.plot(type='line', data=x)" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"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=\"http://fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://lightning.mathisonian.com/css/app.css\"/><div class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"28\" class=\"feed-item-container\"><div data-type=\"line\" data-data=\"[65,75,48,21,61,88,42,50,12,64,4,96,59,15,87,4,20,11,71,70,79,29,70,14,70,57,44,50,42,32,94,79,94,26,1,38,14,78,99,40,21,96,60,69,9,80,12,4,21,35]\" data-images=\"null\" id=\"viz-28\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script src=\"http://lightning.mathisonian.com/js/feed.js\"></script>" | |
], | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 15, | |
"text": [ | |
"<lightning.visualization.Visualization at 0x10f9adf10>" | |
] | |
} | |
], | |
"prompt_number": 15 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"lightning.scatter(x=x, y=x)" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"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=\"http://fonts.googleapis.com/css?family=Open+Sans:400,700\" rel=\"stylesheet\" type=\"text/css\"/><link rel=\"stylesheet\" href=\"http://lightning.mathisonian.com/css/app.css\"/><div class=\"container content wrap push\"><div class=\"feed-container\"><div data-model=\"visualization\" data-model-id=\"29\" class=\"feed-item-container\"><div data-type=\"scatter\" data-data=\"{"points":[{"y":65,"x":65},{"y":75,"x":75},{"y":48,"x":48},{"y":21,"x":21},{"y":61,"x":61},{"y":88,"x":88},{"y":42,"x":42},{"y":50,"x":50},{"y":12,"x":12},{"y":64,"x":64},{"y":4,"x":4},{"y":96,"x":96},{"y":59,"x":59},{"y":15,"x":15},{"y":87,"x":87},{"y":4,"x":4},{"y":20,"x":20},{"y":11,"x":11},{"y":71,"x":71},{"y":70,"x":70},{"y":79,"x":79},{"y":29,"x":29},{"y":70,"x":70},{"y":14,"x":14},{"y":70,"x":70},{"y":57,"x":57},{"y":44,"x":44},{"y":50,"x":50},{"y":42,"x":42},{"y":32,"x":32},{"y":94,"x":94},{"y":79,"x":79},{"y":94,"x":94},{"y":26,"x":26},{"y":1,"x":1},{"y":38,"x":38},{"y":14,"x":14},{"y":78,"x":78},{"y":99,"x":99},{"y":40,"x":40},{"y":21,"x":21},{"y":96,"x":96},{"y":60,"x":60},{"y":69,"x":69},{"y":9,"x":9},{"y":80,"x":80},{"y":12,"x":12},{"y":4,"x":4},{"y":21,"x":21},{"y":35,"x":35}]}\" data-images=\"null\" id=\"viz-29\" data-initialized=\"false\" class=\"feed-item\"></div></div></div></div><script src=\"http://lightning.mathisonian.com/js/feed.js\"></script>" | |
], | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 16, | |
"text": [ | |
"<lightning.visualization.Visualization at 0x1120e5d10>" | |
] | |
} | |
], | |
"prompt_number": 16 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment