Actually i have some use case in which i have to mandatorily run the python file using %sh and in that i can't able to access those variables. I am aware of these variables but the problem is they just don't work.
see the below images:

deficiant_codge_0-1689001870121.pngdeficiant_codge_1-1689001889304.png