Skip to content

Conversation

freeman-lab
Copy link
Member

This PR introduces a client-only or "headless" mode.

This mode makes it possible to generate visualizations without running a server, or even an internet connection. It renders data directly into a template (with jinja2) and appends a bundled version of the javascript for all of Lightning's visualizations.

headless

With this, we can render most of Lightning's visualizations with just a pip install. It does not support all visualizations, and does not support functionality that involves communication between visualization and client (e.g. returning selections). But is provides a particularly simple entry-point, especially for notebooks, and provides faster rendering by avoiding data transfer.

It should be reasonably easy to add this functionality to the other clients. And we can push updates to the core visualizations to all the clients just by updating the embedded JS file.

@freeman-lab
Copy link
Member Author

merging after some offline testing w/ @mathisonian

freeman-lab added a commit that referenced this pull request Aug 10, 2015
@freeman-lab freeman-lab merged commit b3db3cb into master Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants