I’m happy to announce the InteractBase, InteractBulma and InteractUIkit packages, to build interactive HTML5 widgets in Julia (InteractBulma and InteractUIkit are used to add “styling” to the widgets, using the Bulma or UIkit CSS frameworks respectively: adding a CSS framework is relatively straightforward and there may easily be more in the future).
How is it different from Interact?
The Interact package has provided similar functionality (adding widgets from Julia) for a while. This package is different in several ways:
-
It’s built on top of WebIO and therefore works in an Electron window via Blink, in the Juno IDE plot pane and in the browser via Mux, as well as in Jupyter notebook and Jupyter lab (meaning that the same code used in the Juno plot pane or in a notebook can be deployed as a web app)
-
The logic is decoupled from the styling, which allows for styling and responsive layout capabilities using existing CSS frameworks. This is an example of a UI designed with InteractBulma:
- Any HTML5 component can be used for widgets, which covers a lot of input types (color, date, time, text, number, range, email, password, autocomplete…) as well as custom features from CSS frameworks (accordions, tabs, etc…)
In the future, the Interact package will probably be repurposed to be a wrapper around InteractBase and its various themes (see PR).
A small demo
Here’s a small demo to see the package in action in combination with Plots in a jupyter notebook:
And here is the link to the blog post describing the package as part of my Google Summer of Code project.
Acknowledgments
The package benefitted immensely from the mentorship and previous packages of @shashi (in particular, the set of packages from JuliaGizmos organization) and @jobjob who worked on a previous iteration of this redesign of Interact with the package InteractNext. The future is for InteractNext to be reused as “material design” theme on top of InteractBase.