diff --git a/src/renderer/outputLoader.ts b/src/renderer/outputLoader.ts index cd03685..5743e89 100644 --- a/src/renderer/outputLoader.ts +++ b/src/renderer/outputLoader.ts @@ -1,5 +1,5 @@ -import type {OutputItem} from 'vscode-notebook-renderer'; -import {csvParse} from 'd3-dsv'; +import type { OutputItem } from 'vscode-notebook-renderer'; +import { csvParse, autoType } from 'd3-dsv'; const aq = require('arquero'); const xmlParser = require('fast-xml-parser'); @@ -50,7 +50,7 @@ export class OutputLoader { } else if (this.isCsv(textData)) { // parse CSV data - return csvParse(textData); + return csvParse(textData, autoType); } else if (textData !== '{}' && !textData.startsWith('