File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1049,6 +1049,15 @@ multiple cases:
1049
1049
IPythonQt client) to force a kernel restart to get a clean kernel without
1050
1050
losing client-side state like history or inlined figures.
1051
1051
1052
+ Implementation recommendation for starting kernels: A restart should optimally
1053
+ preserve as many resources outside the kernel as possible (e.g. only restart the
1054
+ kernel and its subprocesses and not any parent processes). That is, ideally a
1055
+ restart should be "in-place". For local kernels, there is typically no parent
1056
+ process so a "hard" restart and an in-place restart are identical whereas for
1057
+ remote kernels this is not generally the same. As an example, if a remote kernel
1058
+ is run in a container, during an in-place restart the container may be kept
1059
+ running and a new kernel process within it would be started.
1060
+
1052
1061
The client sends a shutdown request to the kernel, and once it receives the
1053
1062
reply message (which is otherwise empty), it can assume that the kernel has
1054
1063
completed shutdown safely. The request is sent on the ``control `` channel.
You can’t perform that action at this time.
0 commit comments