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):
369
369
if cls .started :
370
370
return
371
371
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" )
377
380
378
381
cls .started = True
379
382
Original file line number Diff line number Diff line change 14
14
$ ( document ) . ready (
15
15
function ( ) {
16
16
var main_div = $ ( 'div#figures' ) ;
17
- var figure_div = $ ( '<div style="padding-bottom: 12px "/>' )
17
+ var figure_div = $ ( '<div id="figure-div "/>' )
18
18
main_div . append ( figure_div ) ;
19
19
var websocket_type = mpl . get_websocket_type ( ) ;
20
20
var websocket = new websocket_type (
Original file line number Diff line number Diff line change @@ -75,3 +75,8 @@ span#login_widget {
75
75
-webkit-box-sizing : border-box;
76
76
}
77
77
78
+ # figure-div {
79
+ display : inline-block;
80
+ margin : 10px ;
81
+ }
82
+
You can’t perform that action at this time.
0 commit comments