We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f31c94 commit b8aa604Copy full SHA for b8aa604
jupyter_server_terminals/app.py
@@ -36,6 +36,8 @@ class TerminalsExtensionApp(ExtensionApp):
36
37
def initialize_settings(self) -> None:
38
"""Initialize settings."""
39
+ if not self.serverapp.terminals_enabled:
40
+ return
41
self.initialize_configurables()
42
self.settings.update(
43
{"terminals_available": True, "terminal_manager": self.terminal_manager}
@@ -70,6 +72,9 @@ def initialize_configurables(self) -> None:
70
72
71
73
def initialize_handlers(self) -> None:
74
"""Initialize handlers."""
75
76
+ # Checking self.terminals_available instead breaks enabling terminals
77
78
self.handlers.append(
79
(
80
r"/terminals/websocket/(\w+)",
0 commit comments