# Using Voyager in JuypterLab

## **Open Files in Voyager Extension**

To open local files in the Voyager extension, right click on a valid file (JSON, CSV, TSV, vl.JSON) in JupyterLab's `Files` tab, hover over `Open With`, and click `Voyager`. After opening your dataset in Voyager, you can visualize and explore your data as described in [earlier sections](https://github.com/vega/voyager-docs/tree/d3786f83366a597c44a2a2b9895ad58d7db6d039/visualizing-data/README.md) of this documentation.

![](https://2307510974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB2cWom_kyHA9FGG9Zw%2F-LDKkbMciT_dilQq2Tih%2F-LDKmYH_b0eIA1Bbn8Py%2FopeningVoyager.gif?alt=media\&token=5bf28e19-1822-4709-8f71-90c6db121e6a)

## Export Visualization from Voyager Extension

You can export visualizations from Voyager to a vl.JSON (Vega-Lite) file or Jupyter Notebook.

### Export to vl.JSON File

To save your visualization to a vl.JSON file, right click anywhere in the `Specified View` pane, and click`Export Voyager as Vega-lite File`. You can re-open this file later [in the Voyager extension](#open-files-in-voyager-extension) and JupyterLab's native Vega-Lite renderer.

![Save specified visualization to vl.JSON file](https://2307510974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB2cWom_kyHA9FGG9Zw%2F-LDsHiglmD8OR3-Ox9dR%2F-LDsHmxMa91VLCI6KME1%2FexportVoyager1.gif?alt=media\&token=e712855e-c825-47d2-8157-2495838b57f9)

### Export to Jupyter Notebook

To export your visualization to a Jupyter Notebook, right click anywhere in the `Specified View`pane, and click `Save Voyager to Jupyter Notebook`. JupyterLab will then prompt you to choose a Python Kernel. After selecting a kernel, the [Altair code](https://altair-viz.github.io/) to generate your visualization will be injected into a notebook cell. Run the cell to display your visualization.

![](https://2307510974-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LB2cWom_kyHA9FGG9Zw%2F-LDsJHxAG69r4qLYUfVM%2F-LDsJL2qwJeFyEVtFGXa%2FexportCode.gif?alt=media\&token=bd5c76ee-3e7a-4262-8fc9-c3addf07a64c)
