Skip to content

Commit 6dda5ad

Browse files
jkitchinYour Namepre-commit-ci[bot]
authored
Make cache_ports configurable with default value of False. (#956)
Co-authored-by: Your Name <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e7ebada commit 6dda5ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_client/manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def kernel_spec(self) -> t.Optional[kernelspec.KernelSpec]:
183183
return self._kernel_spec
184184

185185
cache_ports: Bool = Bool(
186-
help="True if the MultiKernelManager should cache ports for this KernelManager instance"
186+
False,
187+
config=True,
188+
help="True if the MultiKernelManager should cache ports for this KernelManager instance",
187189
)
188190

189191
@default("cache_ports") # type:ignore[misc]

0 commit comments

Comments
 (0)