Commit 3615c2d
committed
Allow for kernel I/O to be disconnected by a client manually
Previously, the kernel I/O would be established at client creation
time and was unable to be disconnected for the lifetime of the
client. The issue with this was that the same kernel could be used
for different clients at different times, as such a client may receive
unwanted kernel messages at those later times when another client is
connected. This change allows for a manual disconnect from the
kernel's I/O and connecting to it again at a later time.
* jupyter-client.el (jupyter-connect): New function.
(jupyter-disconnect): Modified to account for change.
* jupyter-kernel-process.el (jupyter-zmq-io): Add connect and
disconnect messages to allow for a client to start and stop the I/O
connection at will.
* jupyter-server-kernel.el (jupyter-websocket-io): Ditto. Removed the
`shutdown` indicator.1 parent 698815e commit 3615c2d
File tree
3 files changed
+25
-9
lines changed3 files changed
+25
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
414 | 423 | | |
415 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
416 | 427 | | |
417 | 428 | | |
418 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | | - | |
251 | | - | |
252 | 249 | | |
253 | 250 | | |
254 | 251 | | |
| |||
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
267 | | - | |
268 | | - | |
269 | 264 | | |
270 | 265 | | |
271 | 266 | | |
| |||
313 | 308 | | |
314 | 309 | | |
315 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
316 | 319 | | |
317 | 320 | | |
318 | | - | |
319 | | - | |
320 | | - | |
| 321 | + | |
| 322 | + | |
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
| |||
0 commit comments