MCPcopy Index your code
hub / github.com/ipython/ipython / quiet

Method quiet

IPython/core/displayhook.py:87–97  ·  view source on GitHub ↗

Should we silence the display hook because of ';'?

(self)

Source from the content-addressed store, hash-verified

85 pass
86
87 def quiet(self):
88 """Should we silence the display hook because of ';'?"""
89 # do not print output if input ends in ';'
90
91 try:
92 cell = self.shell.history_manager.input_hist_parsed[-1]
93 except IndexError:
94 # some uses of ipshellembed may fail here
95 return False
96
97 return self.semicolon_at_end_of_expression(cell)
98
99 @staticmethod
100 def semicolon_at_end_of_expression(expression):

Callers 1

__call__Method · 0.95

Calls 1

Tested by

no test coverage detected