I just tried to create a small shortcut to activate a conda env and run jupyter notebook. But I can't run it by double clicking.
I added chmod +x
and changed the behaviour in nautilus (as recommended here). Nothing happens.
The script only contains
source activate tensorflow
jupyter notebook
Later I added #! /bin/bash
but that didn't help either.
When I run the script from terminal with source myscript.sh
it works fine.
Edit
This is not a duplicate. I've read that thread and did what was recommend ( as I've pointed out above) but this doesn't work for me.
sh
, you can't usesource
(that is a bash command), use.
instead:. activate tensorflow
. Also note that you might need to use the full path to theactivate
executable. Actually, if you do what is explained in the duplicate and the script still fails, you should ask a new question. I'd be surprised if that command works the way you expect it to. – terdon Mar 14 '17 at 09:22.bashrc
or something. – muru Mar 14 '17 at 09:29