Due to optimization issues, I had to transfer my code to pure Python form in order to implement multiprocessing.Now I have a Python script that runs as expected when executed by Visual Studio Code. I want to find a way to call that script from Jupyter Notebook, after I pass inside some arguments, execute the program the same way that happens in VSCode and transfer the results back to Jupyter.
Is there a way to do that?
Edit: Although your answers have been really helpful and I managed to do what I first envisioned, a huge issues ensued. To be specific, in order to implement multiprocessing, I need the condition
if name = 'main': (there are underscores here,instead of being bold)
and thus when I run the script using jupyter it evaluates to False , and so multiprocessing never takes place.Is there a way around it?