Skip to content

Commit 414708f

Browse files
Merge pull request #10 from weekenthralling/dev
fix: ipython kernel startup script
2 parents ab7c141 + b4142cb commit 414708f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel_launch/launch_ipykernel.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,6 @@ def check_idle(kernel_idle_timeout):
528528
current_time = time.time()
529529
# Check if the idle timeout has been exceeded
530530
if current_time - last_activity_time > kernel_idle_timeout:
531-
print(
532-
f"Kernel is idle for {current_time - last_activity_time}s, shutting down..."
533-
)
534531
os.kill(os.getpid(), signal.SIGTERM)
535532
time.sleep(60)
536533

@@ -553,7 +550,6 @@ def monitor_activity(conn_file):
553550
msg = client.get_iopub_msg(timeout=1)
554551
if msg and msg["header"]["msg_type"] == "status":
555552
execution_state = msg["content"]["execution_state"]
556-
print(f"Kernel execution state: {execution_state}")
557553
if execution_state == "busy":
558554
# Update last activity time
559555
last_activity_time = time.time()

0 commit comments

Comments
 (0)