Skip to main content

Interactive visualization of Spark jobs

Project description

spark-board: interactive PySpark dataframes visualization

spark-board provides an interactive way to analize PySpark data frame execution plans as a static website displaying the transformations DAG.

Check out the examples for a quick overview of the features (and the corresponding examples source code here).

If you intend to develop spark-board or run from source, check out the documentation.

Usage

spark-board takes a PySpark data frame and inspects the operations to build the DAG. This usually is the final step of a PySpark script, right before writing it to disk.

Install spark-board

pip install spark-board

Run spark-board

from spark_board.html import dump_dataframe, DefaultSettings

# get the PySpark data frame that will be displayed
df = ...

dump_dataframe(
    df=df,
    output_dir="./spark_board_output",
    overwrite=True,  # overwrite output_dir if it already exists
    default_settings=DefaultSettings(),  # override default settings if desired
)

and that's it! spark-board will generate a static website in the defined output_dir folder. You can now serve the website using any web server and inspect the operations.

You can check out the available default settings here.

Serving

spark-board is intended to be a live documentation of PySpark scripts. Because of this, it's advisable to run it every time the source code is updated. For example, spark-board can be run as part of a CI pipeline and the generated website uploaded to a static website hosting service, like Github or Gitlab pages (we actually do this to update and serve the examples in this repository).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spark-board-0.2.0.tar.gz (233.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spark_board-0.2.0-py3-none-any.whl (249.5 kB view details)

Uploaded Python 3

File details

Details for the file spark-board-0.2.0.tar.gz.

File metadata

  • Download URL: spark-board-0.2.0.tar.gz
  • Upload date:
  • Size: 233.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for spark-board-0.2.0.tar.gz
Algorithm Hash digest
SHA256 819ccf295250262fc68ba90bac4c8245811a292d45ebe376245bdd366eab7326
MD5 cc635e72707a1d4e136a06db7646d830
BLAKE2b-256 ce8269df09c985df891f404b1e6ce1e2995ba5ff9d3c4ef08bc45fce810b6482

See more details on using hashes here.

File details

Details for the file spark_board-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: spark_board-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 249.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for spark_board-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c840f0c02b94c470f3aed87c1b8fce770e62377c7b55fb39c7ab57c6d65e6b6e
MD5 5c0d137523359f2641c96b143d2c7a87
BLAKE2b-256 8080bb6534ea743ad57afd88b13ae626134097334a8b48e8da807ff9e37f14e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page