To speed up launching projects I created a small bash script which does the following:
- takes an argument (project name)
- moves to the directory of that project
- starts a virtual environment
- starts a jupyter notebook
#!/bin/bash
if [ "$1" == "k3" ]; then
project_path="tau-code/k3-analysis/"
fi
codepath="/media/peter/somedrive/code"
full_path="$codepath/$project_path"
# Go to directory of project
cd $full_path
# Start environment & notebook if available
pipenv shell
jupyter notebook --ip=0.0.0.0
It activates the environment, but does not run the jupyter command. When I exit the environment I see the error:
line 16: jupyter: command not found
I can manually type jupyter notebook --ip=0.0.0.0 in my newly created environment and that does work.
What may be the problem?
which jupyterin newly created environment ? and manually runenvin newly created environment ? also same in your bash script after - pipenv shellpipenv shellenvjupyter notebook --ip=0.0.0.0i somewhere think its a path issue..