Uruchom ponownie jądro Python
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