File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,14 @@ def start(cls):
369369 if cls .started :
370370 return
371371
372- print ("Press Ctrl+C to stop server" )
373- try :
374- tornado .ioloop .IOLoop .instance ().start ()
375- except KeyboardInterrupt :
376- print ("Server stopped" )
372+ if not tornado .ioloop .IOLoop .instance ().running ():
373+ print ("Press Ctrl+C to stop server" )
374+ try :
375+ tornado .ioloop .IOLoop .instance ().start ()
376+ except KeyboardInterrupt :
377+ print ("Server stopped" )
378+ else :
379+ print ("Server is running in an existing Tornado IOLoop" )
377380
378381 cls .started = True
379382
Original file line number Diff line number Diff line change 1414 $ ( document ) . ready (
1515 function ( ) {
1616 var main_div = $ ( 'div#figures' ) ;
17- var figure_div = $ ( '<div style="padding-bottom: 12px "/>' )
17+ var figure_div = $ ( '<div id="figure-div "/>' )
1818 main_div . append ( figure_div ) ;
1919 var websocket_type = mpl . get_websocket_type ( ) ;
2020 var websocket = new websocket_type (
Original file line number Diff line number Diff line change @@ -75,3 +75,8 @@ span#login_widget {
7575 -webkit-box-sizing : border-box;
7676}
7777
78+ # figure-div {
79+ display : inline-block;
80+ margin : 10px ;
81+ }
82+
You can’t perform that action at this time.
0 commit comments