Data Preview πΈ extension for importing π€ viewing π slicing πͺ dicing π² charting π & exporting π₯ large .json
array .arrow
.avro
.parquet
data files, .config
.env
.properties
.ini
.yml
configurations files, .csv/.tsv
& .xlsx/.xlsb
Excel files and .md
markdown tables with Perspective - streaming data analytics WebAssembly library.
![Data Preview](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview.png?raw=true "Data Preview")
.json
.arrow
.avro
.parquet
.yml
.csv/.tsv
& .xlsx/.xlsb
data files in a Data Grid w/Sorting & FilteringGroup By
& Split By
)Excel
data files.md
documentation files.schema.json
generation for Arrow & Avro Data Schema Text Previews in JSON format.json
generation for Arrow, Avro & Excel
formats for Text Data Preview.json
.config
.env
.properties
.ini
& .yml
configuration files.arrow
.csv
.json(s)
.yml
& .properties
formats.config
optionsNote: Data Preview πΈ is already capable of loading a few 10+MB's large data files with 100+K records & extensive list of supported Data Formats you'll be hard pressed to find on VSCode marketplace in one extension.
See data/large/... data folder for sample large data files and Data View .config
s you can try in Data Preview πΈ.
Install Data Preview πΈ via vscode Extensions tab (Ctrl+Shift+X
) by searching for data preview
|| via VSCode marketplace search results.
List of Data Preview πΈ extension config Settings, data.preview
command(s), keyboard shortcut(s), augmented vscode UI context menus, added Data Language mappings, supported Data Files list & configurable Theme & Charts π Settings:
![Data Preview Contributions](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview-contributions.png?raw=true "Data Preview Contributions")
Create User or Workspace Settings in vscode to change default Data Preview πΈ extension Settings:
Setting | Type | Default Value | Description |
---|---|---|---|
data.preview.theme | string | dark | Data Preview UI Theme: dark , light , dense.light , dense.dark , or vaporwave (hight contrast blue theme) |
data.preview.charts.plugin | string | d3fc | Data Preview Charts π library to use for built-in charts: d3fc or highcharts |
data.preview.create.json.files | boolean | false | Creates .json data files for Arrow, Avro & Excel binary data formats |
data.preview.create.json.schema | boolean | true | Creates .schema.json files for Arrow & Avro metadata binary data formats |
data.preview.openSavedFileEditor | boolean | true | Opens created data file Content Editor on Data Save |
data.preview.log.level | string | info |
Data Preview run log level: info or debug for issues troubleshooting |
Data Preview πΈ example using dark
UI theme with d3fc
Charts π Data View config
, viewing
superstore.arrow
data file :)
![Data Preview Dark](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview-dark.png?raw=true "Data Preview Dark")
View -> Command Palette...>Data: Preview Data
command or Ctrl+Shift+D
in an open
.json
.config
.env
.properties
.ini
.yml
or .csv/.tsv
text data file document to launch Data Preview panel.File -> Save
(Ctrl+S
) your text data file for immediate updates in an open Data Preview πΈ panel..xlsx/.xlsb
, .arrow
or .avro
data file in VSCode File Explorer to launch Data Preview panel.explorer/context
, editor/title
or editor/title/context
Preview Data πΈ or Preview Data on Side context menu options to preview your data files..config
.View -> Command Palette...>Data: Preview Remote Data
command or Ctrl+Shift+R
to launch Data Preview for remote http(s)
data files.![Data Preview Open Data File](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview-open-file.png?raw=true "Data Preview Open Data File")
Sort
data by that column.Columns
control panel into Filter fields
for data filtering
(Group By
, Split By
, Sort
, Filter
).Columns
control panel to reorder displayed columns in the Data Grid.Columns
control panel to remove it from a Chart π or Data Grid display.Use Data Preview πΈ to:
.arrow
data format, .ods
.xlsb
|| .xlsx
spreadsheet format, or .csv
.json
.yml
.md
or .properties
text formats.properites
and other key-value pairs configuration files to reformat them or find set config option values.shema.json
for metadata text preview of those binary data files.json
files for text data preview of binary Excel files.csv
or .tsv
data to .json
or .yml
format.md
documentation filesTip: try sample data and Data View .config
files from this repository data/... folders:
data/arrow
data/avro
data/parquet
data/config
data/excel
data/json
data/yaml
data/large
Vega datasets repository also has a broad collection of sample .csv
& .json
array data files you can try in Data Preview πΈ
{
"when": "resourceFilename =~ /.*\\.(json|jsonl|json5|hjson|ndjson|arrow|arr|avro|parquet|env|config|properties|ini|yml|md|csv|tsv|txt|tab|dif|ods|xls|xlsb|xlsx|xlsm|xml|html)/",
"command": "data.preview",
"group": "navigation"
}
Note: .json
.config
& .yml
configuration files that don't contain array data are converted to
flat properties key/value pairs Object and displayed in a Property Grid Data View mode.
See json.utils.ts
for more info.
See Data Manager API & src/data.providers folder for data loading and saving imlementation details.
d3fc
only))d3fc
only)![Data Preview Chart Types](https://github.com/RandomFractals/vscode-data-preview/blob/master/images/vscode-data-preview-chart-types.png?raw=true "Data Preview Chart Types")
<, <=, ==, !=, >, >=
for dates and number columns/fields==, !=, contains, in, not in, begins with, ends with
for string fields and dictionaries&, |, and, or, ==, !=
for bolean fieldsOther extensions Data Preview πΈ replaces, enhances or supplements for working with supported data file formats in VSCode:
Extension | Description |
---|---|
Excel Viewer | View Excel spreadsheets and CSV files |
Avro Viewer | .avro file viewer |
avro-idl | Avro IDL Syntax Highlighter |
DotENV | .env Syntax Highlighter |
Ini for VSCode | Provides outline view and section folding for INI files |
Hjson | Hjson language syntax support |
JSON5 syntax | Adds syntax highlighting of JSON5 files |
NDJSON Colorizer | Colorizes NDJSON (Newline Delimited JSON) files |
YAML | YAML Language Support by Red Hat, with built-in Kubernetes and Kedge syntax support |
docs-yaml | YAML schema validation and auto-completion for docs.microsoft.com authoring |
YAML to JSON | Convert YAML from clipboard or current document/selection to JSON and vice versa |
Properties To Yaml | Convert properties to yaml |
Markdown Table Prettifier | Transforms markdown tables to be more readable |
See #DataPreview πΈ tag on Twitter for the latest and greatest updates on this vscode extension and what's in store next.
$ git clone https://github.com/RandomFractals/vscode-data-preview
$ cd vscode-data-preview
$ npm install
$ code .
F5
to launch Data Preview extension VSCode debug session.
||
vscode-data-preview>vsce package
to generate VSIX
Data Preview extension package from our latest for local dev install in VSCode.
Note: Use Help -> Toggle Developer Tools
vscode menu option to view Data Preview console log.
Any and all test, code or feedback contributions are welcome.
Open an issue or create a pull request to make this Data Preview πΈ extension work better for all.
SheetJS | Aman Mittal |
<img height='36' style='border:0px;height:36px;' border='0' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=2' alt='support me on ko-fi.com' />