Restart ipython Kernel with a command from a cell
import IPython
IPython.Application.instance().kernel.do_shutdown(True) #automatically restarts kernel
As Thomas K. suggested, here is the way to restart the ipython
kernel from your keyboard:
import os
os._exit(00)