Jupyter-notebook Management Interface
This is a kind of Jupyter-notebook launcher.
I recommend this if you want to launch/shutdown notebook with one command from anywhere on your computer.
./jmi.sh go
- Check if Jupyter-notebook process exists
- Launch new process only when it doesn't exist
- Open web browser
./jmi.sh kill
- Check if Jupyter-notebook process exists
- Kill the process only when it exists
It's useful to create their aliases.
alias j='./jmi.sh go >> /tmp/jmilog.txt 2>&1'`
alias jk='./jmi.sh kill >> /tmp/jmilog.txt 2>&1'`
Please rewrite these variables as you like.
readonly JMI_ROOT_DIR=~/kaggle
readonly JMI_BROWSER_NAME=google-chrome
In default, jupyter-notebook
command opens your browser automatically.
If you use this launcher, it's recommended to disable it as below.
- Open
$(jupyter --config-dir)/jupyter_notebook_config.py
. If it doesn't exist, create withjupyter notebook --generate-config
. - Find
#c.NotebookApp.open_browser = True
- Change it to
c.NotebookApp.open_browser = False
Thanks.