# Learn PySpark Free: Hands-On Spark Lab With the Spark UI

> Learn PySpark by running it: 14 lessons, an IDE-style editor, Delta Lake and the real Spark UI in one Docker image on your laptop. No Databricks account.

Page: https://datautility.in/learn-pyspark-free
This is the Markdown copy of the page. The tool itself runs in the browser: your files are processed on your own device and are not uploaded.

**Quick answer:** Run PySpark on your own computer and learn to read the Spark UI.

## How to use the Learn PySpark Free: Hands-On Spark Lab With the Spark UI

Spark Lab is a PySpark and Delta Lake playground that runs on your own computer. You learn Apache Spark without installing Java, Python or Spark yourself. You start a small lab on your own computer with one Docker command, then type PySpark code on this page. The code runs in Spark on your machine, and the real Spark UI shows the jobs, stages, shuffles, joins and query plans it made. Lessons on sample data walk you through what to look for, and the Delta lessons show every commit of the Delta transaction log as you update, delete, MERGE and time travel.

1. Start the lab with the Docker commands
2. Paste the token and connect
3. Run a lesson and open the Spark UI

## What it does

- Real Spark UI and Delta log
- 14 lessons, Spark to MERGE
- Your data stays on your laptop

## Tips

- Each run is labelled "Run 1", "Run 2" and so on in the Jobs tab of the Spark UI, so you can match a job to the code that made it.
- Use .explain() on a DataFrame to print its plan, then compare it with the SQL / DataFrame tab of the Spark UI.
- Variables are kept between runs. Use Restart for a clean Spark session.
- After a Delta write, the Delta log panel opens by itself. Click Read vN on a commit to insert time-travel code for that version.
- The status bar shows the cores and driver memory Docker gives Spark. Give Docker more in Docker Desktop, Settings, Resources.

## Example

Input:

```
spark.read.csv("orders.csv", header=True)
```

Output:

```
A DataFrame, plus its job in the Spark UI
```

## Frequently asked questions

### Do I need Databricks to learn PySpark?
No. The Spark Lab runs Apache Spark in Docker on your computer, free, with the same Spark UI.

### What do I need to install?
Only Docker Desktop. The lab brings its own Java, Python, Spark and Delta Lake.

### Can I use it in VS Code?
Yes. Click VS Code workspace on the setup page. It downloads a Dev Container workspace with every lesson as a notebook; open it in VS Code and click Reopen in Container.

### Can I learn Delta Lake without Databricks?
Yes. The lab includes open-source Delta Lake 3.2. Write Delta tables, update, delete, MERGE and time travel, and read the _delta_log, all on your laptop.

### Is my code sent to a server?
No. This page sends your code to the lab on your own computer (localhost). It does not go to Data Utility.

### Why does the lab ask for a token?
So that only this page, with the token from your terminal, can run code in your lab. Other websites cannot use it.

### Which browsers work?
Chrome and Edge work best. Some browsers block a website from talking to your own computer; if connecting fails, try Chrome.

## Related pages

- [Spark Lab](https://datautility.in/pyspark-spark-ui-lab): Free PySpark and Delta Lake playground on your own computer: one Docker command, the real Spark UI, a Delta transaction log viewer and 14 lessons. No Databricks, code stays local.
- [Spark UI Playground: See Stages, Tasks and Shuffle](https://datautility.in/spark-ui-playground): Practise reading the Spark UI on your own computer: run a PySpark job, then open jobs, stages, tasks, shuffle and the SQL tab. Works in the Spark Lab and the Airflow Lab.
- [Run PySpark on Your Own CSV, Parquet, JSON or Avro File](https://datautility.in/pyspark-read-csv-parquet-avro): Upload a CSV, JSON, Parquet, Avro or ORC file to the lab, get the PySpark read code for it in one click and run it. Files stay in your Docker volume.
- [Delta Lake Playground: Learn Delta Tables Locally](https://datautility.in/delta-lake-playground): Practise Delta Lake free on your laptop: write Delta tables, UPDATE, DELETE, MERGE and time travel in PySpark, and see every _delta_log commit. No Databricks account.
- [PySpark Playground With the Real Spark UI](https://datautility.in/pyspark-playground): Run PySpark in a free playground on your own computer: an IDE-style editor, 14 lessons, your own CSV or Parquet files and the real Spark UI for jobs, stages and shuffles.

## Topic guides

- [Free Data Engineering Playgrounds: PySpark, Delta Lake, dbt and Airflow](https://datautility.in/guides/data-engineering-playgrounds)
- [Export and Share Data Transformations as SQL, pandas and PySpark](https://datautility.in/guides/export-data-transformations-as-code)

## Guides

- [Learn PySpark and the Spark UI Free, on Your Own Laptop](https://datautility.in/blog/learn-pyspark-and-the-spark-ui-free)
- [How to Read the Spark UI: Jobs, Stages, Shuffles and Joins](https://datautility.in/blog/read-the-spark-ui-jobs-stages-shuffle)
- [Process 10 GB and 20 GB Files With PySpark on Your Laptop](https://datautility.in/blog/process-large-files-pyspark-docker-laptop)
- [Where the Spark Lab Stores Your Data, and How to See It in Docker](https://datautility.in/blog/where-spark-lab-stores-your-data-docker)

Open the tool: https://datautility.in/learn-pyspark-free
