Skip to content

Commit ed7f9d0

Browse files
committed
switch the default to generate new random ports when restarting early
1 parent 41dc025 commit ed7f9d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/restarter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class KernelRestarter(LoggingConfigurable):
3535
help="""The number of consecutive autorestarts before the kernel is presumed dead."""
3636
)
3737

38-
random_ports_until_alive = Bool(False, config=True,
38+
random_ports_until_alive = Bool(True, config=True,
3939
help="""Whether to choose new random ports when restarting before the kernel is alive."""
4040
)
4141
_restarting = Bool(False)

0 commit comments

Comments
 (0)