Using Livy with Interactive Notebooks
You can submit Spark commands through Livy from an interactive Apache Zeppelin notebook:

When you run code in a Zeppelin notebook using the %livy
directive, the
notebook offloads code execution to Livy and Spark:

For more information about Zeppelin and Livy, see the Zeppelin Component Guide.