Feature list: Palantir extension for Visual Studio Code(功能列表:适用于 Visual Studio Code 的 Palantir 扩展)¶
This page describes the features available in the Palantir extension for Visual Studio Code.
- Transforms preview
- Active preview
- Code-defined input filters
- Debug transforms
- Build transforms
- Transforms type hints
- Python libraries
- Debug Python environment
Commands¶
The following sections list the commands available in the Palantir extension for Visual Studio Code. Use these commands to enhance your workflow when working with Python transforms within the Palantir ecosystem, such as during pipeline development.
If a command is not integrated within the interface, you can invoke it using the Command Palette. You can access the Command Palette with the Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) keyboard shortcut.
Preview and build¶
Run preview¶
Executes a preview of the current transform file.
- Command:
palantir.transforms.previewFile - Icon:
Build on Foundry¶
Initiates a build process for the selected file on Foundry.
- Command:
palantir.transforms.buildFile - Icon:
Open preview panel¶
Displays the preview panel for quick access to transform previews.
- Command:
palantir.transforms.openPreviewPanel
Transform management¶
Create new transform¶
Initializes a new transform project.
- Command:
palantir.transforms.createTransform
Install Python environment¶
Sets up the Python environment necessary for developing transforms.
- Command:
palantir.transforms.initializePythonEnvironment
Install Python test environment¶
Sets up the Python test environment for transform development.
- Command:
palantir.transforms.initializePythonTestEnvironment
Repository and file management¶
Open file in browser¶
Opens the currently selected file in a web browser.
- Command:
palantir.openFileInBrowser
Open repository¶
Provides a quick way to access the repository in a web browser.
- Command:
palantir.openRepository
Accessibility¶
High contrast display¶
Provides a quick way to toggle between high contrast and normal themes in VS Code.
- Command:
palantir.toggleHighContrastTheme - Keyboard shortcut (macOS/Windows):
ctrl + option + h/ctrl + alt + h
Commands for local development only¶
Clone code repository¶
Allows cloning of repositories for local development.
- Command:
palantir.cloneRepository
Restart Code Assist workspace¶
Restarts the workspace for Code Assist.
- Command:
palantir.code-assist.restartWorkspace
Refresh token¶
Refreshes the authentication token to maintain access to Palantir services.
- Command:
palantir.refreshToken - Icon:
Snippets¶
Snippets in Visual Studio Code ↗ are templates that make it easier to enter repeating code patterns.
Below is a list of all available snippets in the Palantir extension for Visual Studio Code. The symbol → represents the Tab key.
Long-form snippets¶
| Snippet | Output code template |
|---|---|
python_transform→ |
A Python transform |
polars_transform→ |
A Python lightweight transform using Polars |
pandas_transform→ |
A Python lightweight transform using pandas |
Short-form snippets¶
| Snippet | Output code template |
|---|---|
ptf→ |
A Python transform |
pltf→ |
A Python lightweight transform using Polars |
pdtf→ |
A Python lightweight transform using pandas |
中文翻译¶
功能列表:适用于 Visual Studio Code 的 Palantir 扩展¶
本文介绍适用于 Visual Studio Code 的 Palantir 扩展中可用的功能。
- 转换预览(Transforms preview)
- 活动预览(Active preview)
- 代码定义的输入过滤器(Code-defined input filters)
- 调试转换(Debug transforms)
- 构建转换(Build transforms)
- 转换类型提示(Transforms type hints)
- Python 库(Python libraries)
- 调试 Python 环境(Debug Python environment)
命令(Commands)¶
以下章节列出了适用于 Visual Studio Code 的 Palantir 扩展中可用的命令。在 Palantir 生态系统中使用 Python 转换(如进行管道开发)时,使用这些命令可提升您的工作效率。
如果某个命令未集成在界面中,您可以通过命令面板(Command Palette) 调用它。您可以使用键盘快捷键 Cmd+Shift+P(macOS)或 Ctrl+Shift+P(Windows/Linux)打开命令面板。
预览与构建(Preview and build)¶
运行预览(Run preview)¶
执行当前转换文件的预览。
- 命令:
palantir.transforms.previewFile - 图标:
在 Foundry 上构建(Build on Foundry)¶
在 Foundry 上启动所选文件的构建流程。
- 命令:
palantir.transforms.buildFile - 图标:
打开预览面板(Open preview panel)¶
显示预览面板,以便快速访问转换预览。
- 命令:
palantir.transforms.openPreviewPanel
转换管理(Transform management)¶
创建新转换(Create new transform)¶
初始化一个新的转换项目。
- 命令:
palantir.transforms.createTransform
安装 Python 环境(Install Python environment)¶
设置开发转换所需的 Python 环境。
- 命令:
palantir.transforms.initializePythonEnvironment
安装 Python 测试环境(Install Python test environment)¶
设置用于转换开发的 Python 测试环境。
- 命令:
palantir.transforms.initializePythonTestEnvironment
仓库与文件管理(Repository and file management)¶
在浏览器中打开文件(Open file in browser)¶
在网页浏览器中打开当前选中的文件。
- 命令:
palantir.openFileInBrowser
打开仓库(Open repository)¶
提供一种快速在网页浏览器中访问仓库的方式。
- 命令:
palantir.openRepository
无障碍功能(Accessibility)¶
高对比度显示(High contrast display)¶
提供一种在 VS Code 中快速切换高对比度主题与普通主题的方式。
- 命令:
palantir.toggleHighContrastTheme - 键盘快捷键(macOS/Windows):
ctrl + option + h/ctrl + alt + h
仅限本地开发的命令(Commands for local development only)¶
克隆代码仓库(Clone code repository)¶
允许克隆仓库以进行本地开发。
- 命令:
palantir.cloneRepository
重启 Code Assist 工作区(Restart Code Assist workspace)¶
重启 Code Assist 的工作区。
- 命令:
palantir.code-assist.restartWorkspace
刷新令牌(Refresh token)¶
刷新身份验证令牌以保持对 Palantir 服务的访问。
- 命令:
palantir.refreshToken - 图标:
代码片段(Snippets)¶
Visual Studio Code 中的代码片段 ↗ 是用于更轻松输入重复代码模式的模板。
以下是适用于 Visual Studio Code 的 Palantir 扩展中所有可用代码片段的列表。符号 → 代表 Tab 键。
长格式代码片段(Long-form snippets)¶
| 代码片段 | 输出代码模板 |
|---|---|
python_transform→ |
一个 Python 转换 |
polars_transform→ |
一个使用 Polars 的 Python 轻量级转换 |
pandas_transform→ |
一个使用 pandas 的 Python 轻量级转换 |
短格式代码片段(Short-form snippets)¶
| 代码片段 | 输出代码模板 |
|---|---|
ptf→ |
一个 Python 转换 |
pltf→ |
一个使用 Polars 的 Python 轻量级转换 |
pdtf→ |
一个使用 pandas 的 Python 轻量级转换 |