Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/ipynb/src/constants.ts
3292 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import type { DocumentSelector } from 'vscode';
7
8
export const defaultNotebookFormat = { major: 4, minor: 5 };
9
export const ATTACHMENT_CLEANUP_COMMANDID = 'ipynb.cleanInvalidImageAttachment';
10
11
export const JUPYTER_NOTEBOOK_MARKDOWN_SELECTOR: DocumentSelector = { notebookType: 'jupyter-notebook', language: 'markdown' };
12
13
// Copied from NotebookCellKind.Markup as we cannot import it from vscode directly in worker threads.
14
export const NotebookCellKindMarkup = 1;
15
// Copied from NotebookCellKind.Code as we cannot import it from vscode directly in worker threads.
16
export const NotebookCellKindCode = 2;
17
18
export enum CellOutputMimeTypes {
19
error = 'application/vnd.code.notebook.error',
20
stderr = 'application/vnd.code.notebook.stderr',
21
stdout = 'application/vnd.code.notebook.stdout'
22
}
23
24
export const textMimeTypes = ['text/plain', 'text/markdown', 'text/latex', CellOutputMimeTypes.stderr, CellOutputMimeTypes.stdout];
25
26
27