To run locally in the vscode, install pyspark and then start a local spark session:

 

from pyspark.sql import SparkSession

spark = SparkSession.builder \
    .master("local[*]") \
    .getOrCreate()

 

This setup should let the project run locally without Databricks while you know what pi sign can do.