DEV Community

Cover image for AutoTranslation from Python to Javascript in Jupyter
HongKee Moon
HongKee Moon

Posted on

AutoTranslation from Python to Javascript in Jupyter

Today, we are going to think about how to bridge the data to different kernel. BeakerX project is quite useful as an extension of Jupyter notebook in order to use various kinds different languages which are based on Java. Therefore, when I have some chances to learn other languages, I can easily learn it from Jupyter notebook. It supports Clojure, Groovy, Java, Kotlin, R, SQL, Scala:

BeakerX

This extension also gives a way to bridge between different kernels for exchange of the data, called AutoTranslation (refer: https://github.com/twosigma/beakerx).

Firstly, I generate random histogram data in Python. Then, we use beakerx data holder to save them. Secondly, we are going to use them for showing in amCharts.

Here are whole source code which you can copy & paste. However, you should install BeakerX for your Jupyter. Please, read the instruction in https://github.com/twosigma/beakerx for more information.

Happy coding!

Top comments (0)