Restart the Python Environment is a reload is required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to make sure to restart the jupyter notebook | |
try: | |
%pip install --user --quiet --upgrade my_module | |
import my_module | |
except ModuleNotFoundError: | |
import os | |
os.kill(os.getpid(), 9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment