Terminate Jupyter Notebook Execution

Q

How to Terminate Jupyter Notebook Execution?

✍: FYIcenter.com

A

If you are running a section of code on the Jupyter Notebook and it is not ending, you can try to terminate it in 2 ways.

1. Click the "Interrupt the kernel" icon on the Notebook. And hope it will termintate the execution.

2. Login to the Jupyter Notebook server computer. And terminate the ker the kernel process with the "kill" command. Do not kill the server process.

fyicenter$ sudo ps -efl | grep jupyter
  0 S fyicenter   3769422 3768011  /usr/local/anaconda3/bin/python \
    /usr/local/anaconda3/bin/jupyter-notebook
  0 S fyicenter   3778873 3769422  /usr/local/anaconda3/bin/python \
    -m ipykernel_launcher -f /home/fyicenter/.local/share/jupyter/runtime/..

fyicenter$ sudo kill -9 3778873

 

⇒ Installing IPython as Jupyter Kernel

⇐ Start Jupyter Server at Boot Time

⇑ Installing and Running Jupyter

⇑⇑ Jupyter - Frequently Asked Questions

2022-10-31, ∼1899🔥, 0💬