0.4.0 • Published 4 years ago
jupyterlab_spark v0.4.0
jupyterlab_spark
A JupyterLab extension to show Spark Application UI in a JupyterLab panel
Prerequisites
- JupyterLab
Installation
jupyter labextension install jupyterlab_sparkUsage
Note: the extension only works with Spark application running in client mode.
- Add the following configuration to
spark-defaults.confto 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!

Development
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 buildAcknowledgement
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.