Slow execution while using %sudo python3.6 xx.py

Hi, dear PYNQ elites,

I observed that it takes a longer time to execute the code if the user uses the command mode to run the python code? The delay is a little bit significant while user watches the terminal.

For instance, %sudo python3.6 xx.py

What does it happen? Is it normal? Are they any way to resolve the issue in batch command mode execution of python code?

Thank you.

Well, if you run

! python3.6 xx.py

I think it is already sudo? I have not seen examples running command using the magic. Not sure what it does under the hood, though.