Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ _is_ipython
Function
_is_ipython
box/box.py:54–62 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
53
54
def
_is_ipython():
55
try
:
56
from
IPython
import
get_ipython
57
except
ImportError:
58
ipython = False
59
else
:
60
ipython = True
if
get_ipython()
else
False
61
62
return
ipython
63
64
65
def
_exception_cause(e):
Callers
1
__get_default
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected