gnome-terminal

How to load Python script and run custom code from the terminal in the single command?

How to load Python script and run custom code from the terminal in the single command? Question: Let’s say I have a script called device.py which contains code like this: class Simulator(): def run(): print(‘Running…’) From the shell script, I want to: Open a new tab in the terminal. Load this script to Python console. …

Total answers: 1