Skip to content

Commit e2ed218

Browse files
committed
Move option next to other configs
1 parent aca15ec commit e2ed218

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jupyter_server/gateway/gateway_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,13 +341,6 @@ def gateway_retry_max_default(self):
341341
os.environ.get("JUPYTER_GATEWAY_RETRY_MAX", self.gateway_retry_max_default_value)
342342
)
343343

344-
@property
345-
def gateway_enabled(self):
346-
return bool(self.url is not None and len(self.url) > 0)
347-
348-
# Ensure KERNEL_LAUNCH_TIMEOUT has a default value.
349-
KERNEL_LAUNCH_TIMEOUT = int(os.environ.get("KERNEL_LAUNCH_TIMEOUT", 40))
350-
351344
kernel_launch_timeout_pad_default_value = 0
352345
kernel_launch_timeout_pad_env = "JUPYTER_GATEWAY_KERNEL_LAUNCH_TIMEOUT_PAD"
353346
kernel_launch_timeout_pad = Int(
@@ -366,6 +359,13 @@ def kernel_launch_timeout_pad_default(self):
366359
)
367360
)
368361

362+
@property
363+
def gateway_enabled(self):
364+
return bool(self.url is not None and len(self.url) > 0)
365+
366+
# Ensure KERNEL_LAUNCH_TIMEOUT has a default value.
367+
KERNEL_LAUNCH_TIMEOUT = int(os.environ.get("KERNEL_LAUNCH_TIMEOUT", 40))
368+
369369
def init_static_args(self):
370370
"""Initialize arguments used on every request. Since these are static values, we'll
371371
perform this operation once.

0 commit comments

Comments
 (0)