If the Jupyter notebook is present in a directory containing '@' in dirname, then %reload_ext Kqlmagic does not create the Kqlmagic folder in the same folder. Rather it creates a separate directory without '@' in name, and creates Kqlmagic folder there.
This is a problem if deployment / development is done in restricted environments where the user does not have permissions to create new folder at the same level where Jupyter is running. In such, the user will face the following error -
Problem description
If the Jupyter notebook is present in a directory containing '@' in dirname, then
%reload_ext Kqlmagic
does not create the Kqlmagic folder in the same folder. Rather it creates a separate directory without '@' in name, and creates Kqlmagic folder there.This is a problem if deployment / development is done in restricted environments where the user does not have permissions to create new folder at the same level where Jupyter is running. In such, the user will face the following error -
PermissionError: [Errorno 13] Permission denied: '/home/user/dirwithsymbol'
Steps to reproduce
/home/user/dirwith@symbol
/home/user/dirwith@symbol
import Kqlmagic
and%reload_ext Kqlmagic
/home/user/dirwith@symbol/kqlmagic
/home/user/dirwithsymbol/kqlmagic