Reputation: 672
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
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