79833917

Date: 2025-11-30 13:26:34
Score: 1
Natty:
Report link

With this code can send your instructions or shells to the terminal. (This worked directly on Ubuntu).

import subprocess
command = """conda activate your_env"""
process = subprocess.run(
   command, 
   shell=True,
   stdout=subprocess.PIPE,
   sdterr=subprocess.PIPE,
   shell=True
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ali Reza Ahmadi