We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27ce5ce + 8cec4e5 commit 441ee5fCopy full SHA for 441ee5f
astroquery/utils/system_tools.py
@@ -40,21 +40,9 @@ def gunzip(filename):
40
else:
41
return filename
42
43
+
44
# If there is an update issue of astropy#2793 that got merged, this should
45
# be replaced with it.
46
-
47
def in_ipynb():
48
- try:
49
- cfg = get_ipython().config
50
- app = cfg['IPKernelApp']
51
- # ipython 1.0 console has no 'parent_appname',
52
- # but ipynb does
53
- if ('parent_appname' in app and
54
- app['parent_appname'] == 'ipython-notebook'):
55
- return True
56
- else:
57
- return False
58
- except NameError:
59
- # NameError will occur if this is called from python (not ipython)
60
+ return 'JPY_PARENT_PID' in os.environ
0 commit comments