Poetry and Databricks #8241
Replies: 7 comments 4 replies
|
Any progress on this topic so far? |
|
From our side, unfortunately no. Right now we use Poetry for dependency management and then export a |
|
Hello, I don't know if I get you right but what about using GitHub actions to automatically build a python wheel using poetry. Afterwards, use another GitHub action to upload the wheel to a location to which your Databricks service has access to. Then you can install your package as an own library, cluster wide, and use its functionality. |
|
Seems there's some work currently being done on this end for the Databricks Asset Bundles fyi. https://github.com/databricks/bundle-examples/tree/python-wheel-poetry/knowledge_base/python_wheel_poetry |
|
I'm leveraging a poetry plugin to run |
|
Maybe a workaround how my team uses Poetry and Databricks |
|
@cm-halfspace I use poetry in notebook-scoped virtual environments. E.g.
As you can see, we are using base poetry functionality, there is no magic here. ⬆ this works both in user notebooks and automated workloads (e.g. jobs under a service principal), though in jobs:
I don't know how to achieve this in init scripts, because you would need the repository checked out at the init run time, which is hard to achieve due to authentication requirements, but I hope my example provides a reasonable alternative. |
Uh oh!
There was an error while loading. Please reload this page.
Does anyone have any experience with Poetry and Databricks?
We want to use it at my company where we have a databricks cluster running.
Currently we use an init script to install the python packages which is basically:
We want to move over to Poetry, however, we are having trouble getting Poetry up and running in the init scripts. It is a big mono-repo with sub-projects:
Does anyone have any experience in this area? I get almost zero google results on experiences with Databricks and Poetry combined.
All reactions