Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python files being to converted to notebooks when using Databricks CLI #685

Open
sachamourier96 opened this issue Sep 22, 2024 · 3 comments

Comments

@sachamourier96
Copy link

Hello,
I am using the attached piece of code to import both notebooks and python files from my git repo, and am writing them to a Workspace folder. However, when running the attached code, all of my Python files get converted to notebooks, which is not what I want. I have tried several approaches but still cannot manage to make it work.
Has someone found a way to avoid this convertion? I want my Python files to remain Python files to be able to use them as Python modules.
Thanks a lot in advance,
Sacha

Screenshot 2024-09-22 111325
@alexott
Copy link
Contributor

alexott commented Sep 23, 2024

You need to use new CLI! https://github.com/databricks/cli & https://docs.databricks.com/en/dev-tools/cli/install.html

From the docs:

The legacy Databricks CLI is in an Experimental state. Databricks plans no new feature work for the legacy Databricks CLI at this time.

@sachamourier96
Copy link
Author

Hi @alexott, I have tried to use the latest version but it seems like I am unable to use a version that's above 0.18. Do you have a way to go through this issue ?
Thanks for your help,
Sacha

@alexott
Copy link
Contributor

alexott commented Sep 23, 2024

new CLI isn't Python based - follow the documentation on how to install it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants