Restart ipython Kernel with a command from a cell May 28, 2023 by Tarik As Thomas K. suggested, here is the way to restart the ipython kernel from your keyboard: import os os._exit(00)