Reputation: 61
Upvotes: 5
Views: 3394
Reputation: 673
Just use nohup
. This should be the builtin tool in all Linux machines.
So you should do: nohup jupyter notebook > output.txt
And then you can safely terminate the console session without worrying about killing the notebook.
Upvotes: 1
Reputation: 11
I have also faced a similar problem. I solved it with the help of 'tmux'. I followed these steps:
[Actually, it came preinstalled with the AMI I had been using on the EC2 instance.]
tmux
Jupyter server
or Jupyter notebook
ctrl + b
, (ii) d
[Please notice, the session will continue running on the EC2 instance until you close the instance or close the jupyter server
or the jupyter notebook
].
tmux attach
tmux kill-session
Upvotes: 1