Member-only story
Java, Jupyter, and Plotly
Using a Java Wrapper for Plotly to create Visualizations for Google Colab Notebooks (Jupyter) running with a Java Kernel
Introduction
Jupyter and Plotly are not 2 packages you would typically associate with Java…
It’s also no secret that many of the most popular plotting libraries are not written in Java. That does not prevent us from leveraging existing tools like Plotly, though, and building wrappers for code written in other languages is not the faux pas some would have you think.
Tablesaw provides Java developers with one such solution:
With version 0.2.0 [Tablesaw] introduced a new plotting framework, which provides a Java wrapper around the Plot.ly open source JavaScript visualization library.
Plot.ly is based on the extraordinary D3 (Data-Driven Documents) framework, and is certainly among the best open-source visualization packages available in any language. Plot.ly is so good, it has become widely used in languages other than JavaScript such as Python and R, which already had solid options for visualization.
Prerequisites
As for Jupyter Notebooks and Java, I’ve covered this topic in more detail in previous articles: