From 382cad2fbf23350663dde05a47062d1319600d60 Mon Sep 17 00:00:00 2001 From: Chuck McCallum Date: Thu, 17 Oct 2024 22:49:43 -0400 Subject: [PATCH] ctrl-c reminder --- dp_creator_ii/app/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dp_creator_ii/app/__init__.py b/dp_creator_ii/app/__init__.py index dcb0cdf..7054884 100644 --- a/dp_creator_ii/app/__init__.py +++ b/dp_creator_ii/app/__init__.py @@ -17,10 +17,15 @@ ) +def ctrl_c_reminder(): + print("Session ended (Press CTRL+C to quit)") + + def server(input, output, session): dataset_panel.dataset_server(input, output, session) analysis_panel.analysis_server(input, output, session) results_panel.results_server(input, output, session) + session.on_ended(ctrl_c_reminder) app = App(app_ui, server)