MCPcopy
hub / github.com/pandas-dev/pandas / in_ipython_frontend

Function in_ipython_frontend

pandas/io/formats/console.py:80–95  ·  view source on GitHub ↗

Check if we're inside an IPython zmq frontend. Returns ------- bool

()

Source from the content-addressed store, hash-verified

78
79
80def in_ipython_frontend() -> bool:
81 """
82 Check if we're inside an IPython zmq frontend.
83
84 Returns
85 -------
86 bool
87 """
88 try:
89 # error: Name 'get_ipython' is not defined
90 ip = get_ipython() # type: ignore[name-defined]
91 return "zmq" in str(type(ip)).lower()
92 except NameError:
93 pass
94
95 return False

Callers 1

get_console_sizeFunction · 0.85

Calls 1

lowerMethod · 0.80

Tested by

no test coverage detected