[英]How to add whole python application into azure databricks and run it?
we have a functional model written in Python.我们有一个用 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?
我想一次复制所有代码并从 azure databricks 运行它 - 我看到有一种方法可以从 azure 数据工厂运行 python 代码,但我看到它只用于一个 python 文件,对吗?
I know, I could upload a wheel, or an egg, but in that way, I probably have to import it into notebook.我知道,我可以上传一个轮子或一个鸡蛋,但那样的话,我可能必须将它导入到 notebook 中。 will I be able to access this wheel through CLI or azure data factory?
我能通过 CLI 或 azure 数据工厂访问这个轮子吗? Will I lose option to set parameters?
我会失去设置参数的选项吗?
We use gitlab, so this option is off table, for now.我们使用 gitlab,所以这个选项暂时不在表中。
Thx a lot多谢
Edit I want to summarize what I have found, some of below might be really wrong.编辑我想总结一下我发现的东西,下面的一些可能真的是错误的。
You can copy your python code and paste it into a cell in a Databricks notebook and run it that way.您可以复制 Python 代码并将其粘贴到 Databricks 笔记本中的单元格中,然后以这种方式运行。
You could also use the Databricks CLI to upload your import your file to a Databricks workspace.您还可以使用 Databricks CLI 将导入的文件上传到 Databricks 工作区。
See https://docs.databricks.com/dev-tools/cli/workspace-cli.html请参阅https://docs.databricks.com/dev-tools/cli/workspace-cli.html
Databricks python notebooks are just .py files anyways with some special comments.无论如何,Databricks python notebooks 只是带有一些特殊注释的 .py 文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.