Forum Discussion
Git Integration Best Practices
- 9 months ago
svenchio Thank you for your response. The only deviation I have is when it comes to defining the default lakehouse. We are going to have hundreds of notebooks, and defining a delpoyment rule for each one seems very tedious. What I am thinking of doing, is not connecting to any lakehouse via the UI. I would then use the %%config block and define my default lakehouse using a variable library.
Thanks again for your response. I've referenced some of your posts and videos before and they have been helpful.
Hi ABMN,
The ID of the default lakehouse is defined in the META tags in lines 10-14 of the notebook-content.py file that is synced in Git.
You can set up GitHub Actions or DevOps Pipelines to modify this ID when merging to main.
You also can use deployment pipeline rules to change this I believe.
Not an ideal solution, but workable.
If you found this helpful, cosnider giving Kudos. If I solved your problem or answered your question, mark this post as a solution.