Have you wondering why your friend's pc/laptop can run python notebooks very easily and you faced lots of issue due to admin permissions or some other stuff?
Just turn on a setting.
in windows 11
Setting > System > Advance > PowerShell - turn on the setting. (this will 100% work)
or, if you have admin permission then use this script:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned (didn't worked on my admin restricted PC)