I have an iPython code that uses exclamation mark to run a command:
!aws kms encrypt ...
When I run this command using the subprocess
module, it has access to a different set of environment variables. Since my code is in a module, I would like to make it Python compatible, so I would like to replace the exclamation mark (!) with Python code. What is the equivalent Python code for !
?