For instance, I run 4 scripts sequentially:
%run -i script1.py
%run -i script2.py
%run -i script3.py
%run -i script4.py
The time of execution of each quite long. Is there any way in iPython notebook to run the scripts in parallel and return the local variables from all of them(2 or 3 variables which are important)? In the sequential execution it works fine but long. Thank you in advance.
I've tried to apply the code from this topic but stuck on the first part:
def my_func(my_file):
!python pgm.py my_file
or in my case:
def my_func(my_file):
%run -i $my_file
I can see that execution of the code is happening but after this I can not see the local variables from these scripts.