I've seen some similar questions on here, but they haven't covered this particular use-case and I haven't been able to make it work on my own.
I'm trying to do the following using a script:
- Open a new terminal in a specific directory (and keep it open)
- Activate a specific conda environment in that terminal
- Launch my IDE (atom), also from that terminal
I've tried this:
gnome-terminal --working-directory=~/Desktop/Atom/myEnv/ -e 'conda activate myEnv && atom'
But receive this error message:
Failed to execute child process “conda” (No such file or directory)
I've also tried the following code, which results in a conda not found error:
eval "$(conda shell.bash hook)"
conda activate myEnv
The following code opens a terminal and displays the expected python version for that environment, but doesn't carry-over the activation to the 'bash -i' window:
source ~/miniconda3/bin/activate myEnv
Please let me know if there is a simple way to accomplish this task.