juseraru:

the issue is directly with the separeted scripts.


I’m not sure if I misunderstand the use case, but I thought you are using the same script and the only difference is the notebook vs. IDE?
Could you reuse the working script and execute it in the currently non-working environment, if that’s not the case?