cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create wheels and install/configure automation

adrianhernandez
New Contributor III

Can a notebook be created that pushes new versions of code w/o having to go thru the manual process of creating a whl and other configuration files? In other words, can I create a notebook that will setup/configure and install the wheel? So far all tutorials and demos show several manual steps needed to create a wheel, since our code is likely to change often our team would like to automate the entire creation/update of the wheel including configuration files and code. Is this possible?

1 REPLY 1

Isi
Honored Contributor III

Hey @adrianhernandez ,

Technically yes, but it’s not recommended.

You could technically build everything needed to compile the wheel directly from a Databricks notebook using a setup.py, and store it in a volume, CodeArtifact, or any supported cloud storage location — provided you have the right permissions (for example, via an instance profile and a dedicated or single-user cluster).

 

However, this approach will likely cause issues in the long run. You won’t be able to properly version or validate your builds, you’ll lose traceability of changes, and eventually, someone will overwrite a working wheel with a broken one — which will be painful to troubleshoot.

 

My recommendation is to handle it through a proper repository with version control and a CI/CD pipeline that validates the wheel, tags the release, and publishes it to an artifact repository (e.g., CodeArtifact, Artifactory, or Nexus) that acts as a proxy for all users who need to install it.

 

This way you maintain build consistency, version traceability, and deployment reliability — without the hidden risks of manual or in-notebook builds.

Hope this helps :),

Isi