I want to create a Jupyter/IPython extension to monitor Apache Spark Jobs.
Spark provides a REST API.
However instead of polling the server, I want the event updates to be sent through callbacks.
I am trying to register a SparkListener with the SparkContext.addSparkListener(). This feature is not available in the PySpark SparkContext object in Python. So how can I register a python listener to Scala/Java version of the context from Python. Is it possible to do this through py4j? I want python functions to be called when the events fire in the listener.