Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/conat/hub/api/jupyter.ts
1452 views
1
import { authFirst } from "./util";
2
3
export interface Jupyter {
4
kernels: (opts: {
5
account_id?: string;
6
project_id?: string;
7
}) => Promise<any[]>;
8
9
execute: (opts: {
10
input?: string;
11
kernel?: string;
12
history?: string[];
13
hash?: string;
14
tag?: string;
15
project_id?: string;
16
path?: string;
17
}) => Promise<{ output: object[]; created: Date } | null>;
18
}
19
20
export const jupyter = {
21
kernels: authFirst,
22
execute: authFirst,
23
};
24
25