feat(notebook): run notebooks on a remote Jupyter server (#6669)

Connect to Jupyter Server... in the notebook kernel drop-down and Find Action takes any URL a Jupyter server prints (lab/notebook/JupyterHub user URLs are reduced to the server base) and a token. The token is checked against /api/kernelspecs and stored in the OS credential store; only the base URL is written to disk. Saved servers are listed in the kernel drop-down with their kernel specs, remembered per notebook, and can be removed again.

A remote kernel is started with POST api/kernels, driven over its channels WebSocket (through the configured HTTP proxy via the new ide_http::tunnel), interrupted with POST .../interrupt and deleted on restart, close, failed or cancelled start. A dropped socket is reopened for the same kernel and session for about 15 s so buffered output is replayed. The kernel transport now has a Link with local (ZeroMQ) and remote variants, sharing execution, output routing and the Jupyter Variables window. Token-less servers get the _xsrf cookie and header.

Closes #6526

Co-authored-by: wildcatDownstairs <[email protected]>
Цей коміт міститься в:
LU XIANGRUIтаwildcatDownstairs authored and GitHub committed 2026-11-29 14:00:21 +08:00
1 джерело 7ab456b1e7
коміт d959a2a583
24 files changed
+1243 -60

No files matched your search

+22
Переглянути файл
@@ -267,3 +267,25 @@
flex-wrap: wrap;
}
}
.serverForm {
display: grid;
grid-template-columns: fit-content(30%) minmax(0, 1fr);
align-items: center;
gap: var(--space-2) var(--space-3);
padding: 14px;
}
.serverLabel {
color: var(--fg-secondary);
text-align: right;
}
.serverHint {
color: var(--fg-muted);
}
.serverError {
color: var(--danger);
overflow-wrap: anywhere;
}