Starten Sie den Kernel Python neu
import IPython
IPython.Application.instance().kernel.do_shutdown(True) #automatically restarts kernel
Xabos
import IPython
IPython.Application.instance().kernel.do_shutdown(True) #automatically restarts kernel