We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857eb69 commit 6b91329Copy full SHA for 6b91329
packages/voila/src/kernel.ts
@@ -15,11 +15,13 @@ import { KernelConnection } from '@jupyterlab/services/lib/kernel/default';
15
16
export async function connectKernel(
17
baseUrl?: string,
18
- kernelId?: string
+ kernelId?: string,
19
+ options?: Partial<ServerConnection.ISettings>
20
+
21
): Promise<Kernel.IKernelConnection | undefined> {
22
baseUrl = baseUrl ?? PageConfig.getBaseUrl();
23
kernelId = kernelId ?? PageConfig.getOption('kernelId');
- const serverSettings = ServerConnection.makeSettings({ baseUrl });
24
+ const serverSettings = ServerConnection.makeSettings({ baseUrl, ...options });
25
26
const model = await KernelAPI.getKernelModel(kernelId, serverSettings);
27
if (!model) {
0 commit comments