la_femme_it
la_femme_it

Reputation: 672

How to add whole python application into azure databricks and run it?

we have a functional model written in Python. I would like to copy all of code at once and run it from azure databricks - I saw there is a way to run python code from azure data factory, but I see its only for one python file, is it correct?

I know, I could upload a wheel, or an egg, but in that way, I probably have to import it into notebook. will I be able to access this wheel through CLI or azure data factory? Will I lose option to set parameters?

We use gitlab, so this option is off table, for now.

Thx a lot

Edit I want to summarize what I have found, some of below might be really wrong.

Upvotes: 2

Views: 4125

Answers (1)

David Moore
David Moore

Reputation: 161

You can copy your python code and paste it into a cell in a Databricks notebook and run it that way.

You could also use the Databricks CLI to upload your import your file to a Databricks workspace.
See https://docs.databricks.com/dev-tools/cli/workspace-cli.html

Databricks python notebooks are just .py files anyways with some special comments.

Upvotes: 0

Related Questions