Created
January 20, 2023 08:11
-
-
Save asdf8601/8938eeb99ab94059d4b211b62c732419 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def is_running_on_ipython(): | |
try: | |
from IPython import get_ipython | |
except ImportError: | |
return False | |
if get_ipython() is None: | |
return False | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment