Development environments for Snowflake ML

You can develop Snowflake ML workflows in Snowsight with Notebooks in Workspaces, in VS Code or Cursor connected to Snowflake compute with Remote Development, or locally in an IDE such as CoCo Desktop, Visual Studio Code, or Cursor. In every environment, your code can run on Snowflake Container Runtime, so you can move between interactive development and scheduled workloads without rewriting your code.

Overview

A development environment is where you write and run your ML code. Snowflake ML supports three kinds:

  • Snowsight: Notebooks in Workspaces run in your browser. The notebook kernel runs on Snowflake Container Runtime, with CPU or GPU compute pools.
  • Remote development: With Remote Development (Preview), you connect Visual Studio Code or Cursor to a Snowflake-managed environment over SSH. Notebooks, scripts, and terminals run on Snowflake compute instead of your machine.
  • Local: You write code in an IDE on your machine, such as CoCo Desktop, Visual Studio Code, or Cursor. Your code connects to Snowflake through a Snowpark session. You can submit resource-intensive work, such as training, to Container Runtime as ML Jobs.

All three use the same Snowflake ML APIs, such as the Feature Store, Experiments, and the Model Registry, and the same governed data.

How the environments use Container Runtime

Snowflake Container Runtime is a set of preconfigured environments for machine learning that run on compute pools. Container Runtime runs your code differently in each environment:

  • Notebooks in Workspaces: Each notebook connects to a notebook service. You configure the service’s Container Runtime version and compute pool. Every cell runs on that compute pool, and SQL queries run on a query warehouse. For more information, see Compute setup for Snowflake Notebooks in Workspaces.
  • Remote Development: Your editor runs on your machine, but notebooks, scripts, and terminals run in a Snowflake-managed environment backed by Snowflake Notebook. For more information, see Remote Development with the Snowflake Extension for Visual Studio Code.
  • Local IDEs: Your code runs on your machine and sends queries to Snowflake through a Snowpark session. To run code on Container Runtime, submit it as an ML Job, for example with the @remote decorator or the submit_file and submit_directory functions. The job runs on a compute pool, and you manage it from your local code.

Because both paths run on Container Runtime, you can prototype in a notebook and then run the same code as an ML Job from CI/CD or an orchestrator. For more information, see .

Compare development environments

The following table compares the development environments:

EnvironmentWhere code runsUse when
Notebooks in WorkspacesContainer Runtime on a CPU or GPU compute poolYou want interactive exploration and training in the browser, with no local setup.
Remote Development in VS Code or CursorSnowflake-managed computeYou want to work in VS Code or Cursor while your notebooks and scripts run on Snowflake compute.
CoCo DesktopYour machine; ML Jobs run on Container RuntimeYou want an agent to write, run, and iterate on ML code and notebooks for you.
Visual Studio Code or CursorYour machine; ML Jobs run on Container RuntimeYou already work in VS Code or Cursor and want to develop ML code alongside your other projects and tools.

You can combine environments. For example, you can explore data in a notebook, then move the code into a Git repository and develop it locally.

Considerations

  • Version control: For production code, keep ML code in Git. Notebooks in Workspaces support Git-integrated workspaces. For more information, see Integrate workspaces with a Git repository. Local IDEs work with Git directly.
  • Packages: In Notebooks in Workspaces, you can run pip install in a Python cell or in the notebook terminal. For other options, see Managing packages and runtime. For ML Jobs, you can install custom Python packages in the job’s runtime environment. For more information, see Use Container Runtime.
  • Compute: Notebooks in Workspaces and ML Jobs both use compute pools. Local code that doesn’t run as an ML Job uses your machine for Python and a warehouse for SQL.