Forum Discussion
KJ14
1 month agoNew Member
Unexpected error in fabric pyspark notebook
Hi Everyone, I am using Fabric pyspark notebook .It was as working fine until last month but when i am trying to run it now but showing error like F is not defined but I have already imported funct...
EduardoCastro
Helper I
1 month agoCan you post part of the cell raising the error? I've been experiencing the exact same issue in my Fabric PySpark notebooks, and I think I've figured out what's causing it, if I do
from pyspark.sql import functions as F
and then I do some %pip install random-package I started getting the exact error, the reason is because %pip install restarts the kernel and you imported functions are gone.
That was my case, maybe can help you.