File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 16
16
class KernelSpecResourceHandler (web .StaticFileHandler , JupyterHandler ):
17
17
"""A Kernelspec resource handler."""
18
18
19
- SUPPORTED_METHODS = ("GET" , "HEAD" ) # type:ignore[assignment]
19
+ SUPPORTED_METHODS = ("GET" , "HEAD" ) # type:ignore[assignment]
20
20
auth_resource = AUTH_RESOURCE
21
21
22
22
def initialize (self ):
Original file line number Diff line number Diff line change @@ -209,17 +209,17 @@ def start(self, port: int) -> None:
209
209
def start_metrics_loop ():
210
210
loop = tornado .ioloop .IOLoop ()
211
211
loop .make_current ()
212
-
212
+
213
213
# Set up periodic updates in this IOLoop
214
214
def periodic_update_wrapper ():
215
- if hasattr (self , ' _periodic_update' ):
215
+ if hasattr (self , " _periodic_update" ):
216
216
self ._periodic_update ()
217
217
# Schedule next update in 30 seconds
218
218
loop .call_later (30 , periodic_update_wrapper )
219
-
219
+
220
220
# Start periodic updates
221
221
loop .call_later (30 , periodic_update_wrapper )
222
-
222
+
223
223
loop .start ()
224
224
225
225
self .thread = threading .Thread (target = start_metrics_loop , daemon = True )
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ class NotebooksRedirectHandler(JupyterHandler):
400
400
"PATCH" ,
401
401
"POST" ,
402
402
"DELETE" ,
403
- ) # type:ignore[assignment]
403
+ ) # type:ignore[assignment]
404
404
405
405
@allow_unauthenticated
406
406
def get (self , path ):
You can’t perform that action at this time.
0 commit comments