Skip to content

Instantly share code, notes, and snippets.

@shravankumar147
Created December 9, 2022 12:49
Show Gist options
  • Save shravankumar147/e45827b337c4798aab520b041b1657cd to your computer and use it in GitHub Desktop.
Save shravankumar147/e45827b337c4798aab520b041b1657cd to your computer and use it in GitHub Desktop.
Restart kernel after installing new python packages
# Restart kernel after installation
import IPython
IPython.Application.instance().kernel.do_shutdown(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment