Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2026 12:23 AM
The Spark session never disappears %sh simply runs outside it.
do this:
from mymodule import myfunc
myfunc(spark)
dont do this :
%sh
python my_script.py