User Tools

Site Tools


wiki:use_konsole_profile_python_virtual_environment

Use Konsole profile in python virtual environment

Create a file with the following contents. Let's call it RCFILE (use the name you want).

source /etc/bash.bashrc
source /home/USER/.bashrc
source /path/to/env/bin/activate

(Replace USER with your username of course.)

Set up a profile with the following settings:

Command: /bin/bash –rcfile /path/to/RCFILE

In the profile manager, on the line of the profile, double-click the Shortcut column, and define a shortcut for that profile.

Now, when you use the shortcut, a new tab will be launched, the command will be run, and the shell will be correctly initialized.

Tested on

  • KDE Neon 20.04

See also

References

wiki/use_konsole_profile_python_virtual_environment.txt · Last modified: 2021/05/15 11:19 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki