I'm an ubuntu user. As you know, python promt is a very useful tool. And I want to replace my calculator app with it. What I want is a new terminal with python shell running on it to show up when I press a key combination. I can assign scripts to shortcut keys with compiz-config settings manager, but I can't get the result I want. 'gnome-terminal;python3;' launches a new terminal without python running on it. Looks like it starts python in background on tty7. So how can I get the result I want.
Asked
Active
Viewed 442 times
1
-
Hi, welcome to SO. This would really be better on something like askubuntu.com. This site is more about direct programming questions, eg "My code doesn't work, how do I fix it". – Morgan Thrapp Aug 31 '16 at 19:59
-
Hi Saga, If any of the answers worked for you, please consider accepting it. (tick the big "V" below the up/down arrows on the left). It is the appropriate way to indicate the answer worked for you. Better not add a comment as an answer :) – Jacob Vlijm Aug 31 '16 at 20:12
1 Answers
1
Make it:
gnome-terminal --command python3
As you have certainly guessed, --command is the parameter to use to execute a command inside gnome-terminal.
Ben Beirut
- 733
- 3
- 12
-
great it works for me! but what about ipython? when i try with 'gnome-terminal --command ipython' it is pop-up and closing immediately. – Salih Karagoz Jun 20 '18 at 07:16