jupyter-incubator/sparkmagic

Jupyter magics and kernels for working with remote Spark clusters

What it solves

Sparkmagic lets you work with remote Spark clusters directly from Jupyter notebooks without having Spark installed on your local machine. It removes the need to set up local Spark environments by connecting to a REST server like Livy.

How it works

Sparkmagic uses a REST server (Livy, Lighter, or Ilum) to execute Spark code remotely. It provides magics such as %%spark and %%sql to run code in different languages, and it automatically creates SparkContext and HiveContext. It also includes kernels for PySpark, Spark, and SparkR that give you a full integrated environment. You can send local data to the cluster and capture SQL results as Pandas dataframes.

Who it’s for

Data scientists and engineers who want to use Jupyter notebooks to interactively develop and run Spark applications on remote clusters, without managing local Spark installations.

Highlights

  • Run Spark code in multiple languages (Python, Scala, R) via a REST server.
  • Automatic creation of SparkContext (sc) and HiveContext (sqlContext).
  • %%sql magic for executing SQL queries and automatic visualization.
  • Tools for managing Livy sessions, authentication (Basic, Kerberos), and custom authenticators.
  • Integration with Pandas and other Python libraries for data manipulation.
  • Docker setup for testing and development.

Related

  • Project
  • Project
  • Project
  • Project