A JupyterLab extension to show Spark Application UI in a JupyterLab panel
- JupyterLab
jupyter labextension install jupyterlab_spark
Note: the extension only works with Spark application running in client mode.
- Add the following configuration to
spark-defaults.conf
to allow framing from localhost
spark.ui.allowFramingFrom http://localhost
- Click on the "Application UI" item from the new "Spark" menu
- Input the Spark application id in the popped up dialog and click on "CREATE"
The id can be found in driver log or output of executing sparkContext.applicationId
- Here is your Spark application UI. Enjoy!
For a development install (requires npm version 4 or later), do the following in the repository directory:
npm install
npm run build
jupyter labextension link .
To rebuild the package and the JupyterLab app:
npm run build
jupyter lab build
Thanks to the xkcd exntension tutorial and cookiecutter template. I'm especially inspired by the jupyterlab_tensorboard project where I also shamelessly borrowed some codes.