Editing files in uses Code Editor. You can edit a variety of file types, and when you edit .sql or .py files you can then link these to your SQL Script and Python Pushdown components in your orchestration pipelines to run those scripts.Code Editor is powered by the Monaco Editor, which also powers Visual Studio Code and other editors across the web.Code Editor supports basic syntax colorization and works with the command palette in .
The following file types can be created within and then edited in Code Editor:
.sql
.py
To create .sql or .py files:
In the Files panel, click the + icon.
Choose what file to create:
Python script (.py)
SQL script (.sql)
This will situate the newly created file outside any folders.To create a file inside a folder, click the three dots … alongside that folder and then click Add → Python script (or other type of file).Creating a new Python script or SQL script will open that new script in Code Editor.
The Python Pushdown component is not yet available for Databricks projects. You can use Code Editor to edit your .py files, but you cannot run these Python scripts from a Databricks project in yet.
The Python Pushdown component is not yet available for Amazon Redshift projects. You can use Code Editor to edit your .py files, but you cannot run these Python scripts from an Amazon Redshift project in yet.However, you can use the Python Script component to run Python scripts from within that component’s inline editor.
Using the command palette, press cmd + k (Mac) or CTRL + k (Windows) to activate the command palette in . Type the name of the file you wish to open and then press Enter. Alternatively, activate the command palette by clicking the magnifying glass (search) in the top-left.
Using the Monaco Editor command palette, press fn + F1 (Mac) or F1 (Windows) to access all command palette actions available in Monaco Editor-powered editors.