Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import os
from signal import signal, default_int_handler, SIGINT
import sys
import socket
import time
import uuid
import warnings
Expand Down Expand Up @@ -879,7 +880,9 @@ def get_process_metric_value(self, process, name, attribute=None):
return None

async def usage_request(self, stream, ident, parent):
reply_content = {}
reply_content = {
'hostname': socket.gethostname()
}
if psutil is None:
return reply_content
current_process = psutil.Process()
Expand Down