We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a368582 commit 23b4434Copy full SHA for 23b4434
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}
@@ -71,6 +73,9 @@ def initialize_configurables(self) -> None:
71
73
72
74
def initialize_handlers(self) -> None:
75
"""Initialize handlers."""
76
77
+ # Checking self.terminals_available instead breaks enabling terminals
78
79
self.handlers.append(
80
(
81
r"/terminals/websocket/(\w+)",
0 commit comments