Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add message about stopping the server

  • Loading branch information...
commit 5efca62948bf230ff0cef29603073c4df136c7be 1 parent 8193feb
@mdboom mdboom authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/matplotlib/backends/backend_webagg.py
View
6 lib/matplotlib/backends/backend_webagg.py
@@ -484,6 +484,10 @@ def start(cls):
if cls.started:
return
- tornado.ioloop.IOLoop.instance().start()
+ print("Press Ctrl+C to stop server")
+ try:
+ tornado.ioloop.IOLoop.instance().start()
+ except KeyboardInterrupt:
+ print("Server stopped")
cls.started = True
Please sign in to comment.
Something went wrong with that request. Please try again.