Hi,

I found a cool presentation and sample of how to use iPython notebook with
Lightning visualization server (http://lightning-viz.org/) and then though
it will be cool if we could hook up the zeppeling notebook with this tool
as well.
maybe with some small changes we can hide the connection complexity and
just expose the setting to visualize the output using lightning

Does this seams valuable?

Eran

See below embedded in iPython notebook (
http://nbviewer.ipython.org/github/lightning-viz/lightning-example-notebooks/blob/master/plots/scatter.ipynb
)

Scatter plots in Lightning <http://lightning-viz.github.io/>
------------------------------
Setup
In [15]:

import osfrom lightning import Lightning
from numpy import random, asarray, sqrt, arctan2, pi, clipfrom seaborn
import color_palettefrom sklearn import datasetsfrom colorsys import
hsv_to_rgb

In [2]:

# replace with your own host and credentials, e.g.
http://localhost:3000 or http://my-lightning-server.herokuapp.comhost
= 'http://lightning-docs.herokuapp.com'auth =
(os.getenv('LIGHTNING_USERNAME'), os.getenv('LIGHTNING_PASSWORD'))

In [9]:

lgn = Lightning(ipython=True, host=host,
auth=auth)lgn.create_session('scatter-ipython');

------------------------------
Random points with default styling
In [10]:

n = 100x = random.randn(n)y = random.randn(n)lgn.scatter(x, y)

Out[10]:
​​

-- 
Eran | CTO

Reply via email to