Skip to content

Instantly share code, notes, and snippets.

@tizee
Last active December 26, 2018 08:24
Show Gist options
  • Save tizee/2f5ab4fe5cc09a360b4f7c89ce937925 to your computer and use it in GitHub Desktop.
Save tizee/2f5ab4fe5cc09a360b4f7c89ce937925 to your computer and use it in GitHub Desktop.
run jupyer notebook in the background
nohup jupyter notebook --allow-root > error.log 2>&1 & echo $! > notebook_pid.txt
# add --no-browser if run as a jupyter notebook server
nohup jupyter notebook --allow-root --no-browser> error.log 2>&1 & echo $! > notebook_pid.txt
# reference https://stackoverflow.com/questions/17385794/how-to-get-the-process-id-to-kill-a-nohup-process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment