How can I start SparkSession out of Notebook?

NCat
New Contributor III

Hi community,

How can I start SparkSession out of Notebook?
I want to split my Notebook into small Python modules, and I want to let some of them to call Spark functionality.