Vincent in QtWidgets applications
The folks at Trifacta are making it easy to build visualizations on top of D3 with Vega. Vincent makes it easy to build Vega with Python. Vincent-Qt makes it easy to use Vincent in QtWidgets applications.
$ pip3 install vincent_qt
Create QWebView object, plot something with Vincent then call function display:
import vincent_qt web_view = QWebView() plot = vincent.Line(data) vincent_qt.display(web_view, plot)
You need to have internet connection at least for the first run of application. Vincent-Qt uses JS scripts from the interne to plot. By default it caches them in user cache dir (or in .vega-cache dir inside your application dir if appdirs package isn’t installed).