Skip to content

Commit 28172a1

Browse files
echarlesCarreau
authored andcommitted
do not call debug_request on usage_request
1 parent 815e015 commit 28172a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ipykernel/kernelbase.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,7 @@ async def debug_request(self, stream, ident, parent):
862862
self.log.debug("%s", reply_msg)
863863

864864
async def usage_request(self, stream, ident, parent):
865-
content = parent['content']
866-
reply_content = self.do_debug_request(content)
867-
if inspect.isawaitable(reply_content):
868-
reply_content = await reply_content
869-
reply_content = json_clean(reply_content)
865+
reply_content = {}
870866
cpu_percent = psutil.cpu_percent()
871867
# https://psutil.readthedocs.io/en/latest/index.html?highlight=cpu#psutil.cpu_percent
872868
# The first time cpu_percent is called it will return a meaningless 0.0 value which you are supposed to ignore.

0 commit comments

Comments
 (0)