The Palantir extension for Visual Studio Code allows you to preview Python transforms directly from your local Visual Studio Code environment or a VS Code Workspace in the Palantir platform. This capability enables rapid testing of transforms without the need to exit the code editor. Currently, this feature is only available for Python transforms.
You can start a preview within your local Visual Studio Code environment or an in-platform VS Code Workspace in the following four ways:
The extension provides two methods for previewing transforms:
Using Palantir Code Assist with the Palantir extension is the standard method for previewing during local development.
Upon cloning a Python transforms repository and opening a Python file, the Palantir extension will establish a connection to a remote Code Assist workspace, just as it would for an in-platform code repository environment.
Once Code Assist is ready, the extension will identify all transforms present in the open files.
After selecting a transform for preview, the preview will execute on the remote Code Assist workspace.
Using a local preview is the default previewing method for users working within a in-platform VS Code Workspace.
For local development, local preview must be enabled by your platform administrator.
Upon opening a Palantir repository, the extension will configure the environment. Once the environment is set up and transforms are detected, you will be able to execute previews locally. To do this, the extension downloads and temporarily stores portions of datasets to your machine as long as you have the appropriate permissions for the data.