Description
Hello, @ellisonbg and I are working on creating an Altair ipython widget to interact with the vegalite spec that gets passed to the lightning renderer. However, @ellisonbg found that the lightning renderer is broken inside ipywidgets.Output
Probably the easiest way to get a repro would be to install latest Altair and comment out the create_render_view
method here: https://github.com/ellisonbg/altair/blob/master/altair/view.py
Then, from this notebook: https://github.com/ellisonbg/altair/blob/master/notebooks/WidgetView.ipynb
add this cell: view.create_render_view(v1, shelves=('x','y','color','size'))
@ellisonbg might have better repro steps?
Issue is here: https://github.com/ellisonbg/altair/issues/82
@freeman-lab suggested opening an issue here for him and @mathisonian to take a look. Thanks!
Activity
ellisonbg commentedon Nov 3, 2015
This may take some digging around, but I think that using a unique
id= on the top level element may help some of these issues.
On Mon, Nov 2, 2015 at 5:48 PM, Alejandro Guerrero Gonzalez <
notifications@github.com> wrote:
Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
bgranger@calpoly.edu and ellisonbg@gmail.com
aggFTW commentedon Nov 5, 2015
Friendly ping :) Have you had a chance to take a look at this?
Thanks!
aggFTW commentedon Nov 9, 2015
Hi,
We want to release a product that relies on the lightning renderer and this could block our shipping of it. We are anxiously waiting for some reply :) I am willing to work on it as long as I can get some guidance.
cc. @ellisonbg @sangeethashekar
Thanks!
Alejandro
mathisonian commentedon Nov 9, 2015
hey @aggFTW, sorry for the delay, I've been pulled away on other projects. It will be a couple days before I can really dig into it, but here is what I would recommend:
When using lightning in the "headless" mode the template that renders the visualization is kept here: https://github.com/lightning-viz/lightning-python/blob/master/lightning/lib/template.html.
I would recommend testing the change using lightning in local mode first and if this works we can apply the same change to the server. You can pass additional parameters to the template by adding to the
fields
dictionary here: https://github.com/lightning-viz/lightning-python/blob/master/lightning/visualization.py#L151-L160mathisonian commentedon Dec 6, 2015
Hey @aggFTW, coming back to this - could you help me reproduce?
I'm following these steps:
use_renderer('lightning')
view.create_render_view(v1, shelves=('x','y','color','size'))
I'm not sure what else I need to do to see the errors