Skip to content

Commit 5efca62

Browse files
committed
Add message about stopping the server
1 parent 8193feb commit 5efca62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/backends/backend_webagg.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ def start(cls):
484484
if cls.started:
485485
return
486486

487-
tornado.ioloop.IOLoop.instance().start()
487+
print("Press Ctrl+C to stop server")
488+
try:
489+
tornado.ioloop.IOLoop.instance().start()
490+
except KeyboardInterrupt:
491+
print("Server stopped")
488492

489493
cls.started = True

0 commit comments

Comments
 (0)