Share serverless compute and environment in Git Folders
Use a single serverless compute resource and a pyproject.toml-managed environment across notebooks and files in a Git folder.
O que mudou
The Git Folder Serverless feature allows you to use a single serverless compute resource and a unified Python environment across all notebooks and files within the same Git folder. Dependencies are controlled by a pyproject.toml file at the project root.
Use cases
Imagine you are developing a project with multiple notebooks and Python scripts that rely on the same libraries. With this feature, you avoid setting up the environment notebook by notebook.
- Share the same serverless compute across multiple repository files.
- Manage dependencies centrally via pyproject.toml.
- Run web terminal commands on the same shared compute.
How to use
Open the Git folder editor in the workspace, select Git Folder Serverless from the compute dropdown menu, and add dependencies using notebook commands.
%uv add cowsay
What happens in this code:
- The command uses the uv package manager to add the dependency to the root pyproject.toml file.
%uv sync
What happens in this code:
- The command applies the updated dependencies to the shared environment and updates the lock file.
Limitations and requirements
- This feature is in Beta.
- Your project must be in a Git folder and opened in the Git folder editor.
- The environment version in pyproject.toml must be set to 5 or later.
- Only assets inside the associated Git folder can attach to the compute resource.
- Compute sharing is scoped to a serverless usage policy; folders using different policies get separate compute resources.
- git folders
- serverless
- compute
- python
- pyproject.toml
Git Folder Serverless is in Beta
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis