I am trying to turn the following into an executable bash script
#!/bin/bash
cd ~/mlpractical
source activate mlp
jupyter notebook
after creating a .rtf file with the above, i then execute from the correct directory
chmod u+x filename
but everytime i then try and open the file i get an output telling me on line 1) the command is not found, on line 2) there is a syntax error etc.
How do I make the script executable (double-clickable) and resolve this error?