Skip to content

Commit 4a187b2

Browse files
committed
Set cell language to JSON
1 parent be08703 commit 4a187b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/notebooks/deepnote/converters/visualizationBlockConverter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class VisualizationBlockConverter implements BlockConverter {
8484
};
8585

8686
const jsonContent = JSON.stringify(config, null, 2);
87-
const cell = new NotebookCellData(NotebookCellKind.Code, jsonContent, 'python');
87+
const cell = new NotebookCellData(NotebookCellKind.Code, jsonContent, 'JSON');
8888

8989
return cell;
9090
}

src/platform/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export const LanguagesSupportedByPythonkernel = [
125125
'sql', // %%sql
126126
'perl', // %%perl
127127
'qsharp', // %%qsharp
128+
'JSON', //JSON cells for custom block types
128129
'raw' // raw cells (no formatting)
129130
];
130131
export const jupyterLanguageToMonacoLanguageMapping = new Map([

0 commit comments

Comments
 (0)