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

Databricks workspace import and import_dir should support importing non-code files like images #621

Open
cmenguy opened this issue Mar 22, 2023 · 6 comments

Comments

@cmenguy
Copy link

cmenguy commented Mar 22, 2023

Right now it seems databricks workspace import commands only consider code files and require a language.

However this makes things difficult for example if I have a project with notebooks that reference images in a relative path, and I want to import the entire project as the notebook + images using the same path.

It seems this is already supported as in the UI you can already import an image and it just works, so this is likely just a limitation of the CLI.

@cloudyday
Copy link

See also #618

@rdunlap-inspire11
Copy link

rdunlap-inspire11 commented May 11, 2023

Databricks has deprecated the storage of cluster init scripts in DBFS, suggesting that they instead be stored in Workspace. This feature would therefore also be useful for managing the import of shell scripts into Workspace via scripts and pipelines using the Databricks CLI, which facilitates making this update across multiple environments.

@sachamourier96
Copy link

Hello, has this been fixed or did you guys find another way to do it ?
Thanks a lot,
Sacha

@alexott
Copy link
Contributor

alexott commented Sep 21, 2024

@sachamourier96 you need to use new CLI instead: https://github.com/databricks/cli

@sachamourier96
Copy link

@alexott Hi Alex, I currently use import_dir and my python files get transformed to Python notebooks.

@alexott
Copy link
Contributor

alexott commented Sep 21, 2024

This CLI is unsupported and doesn't have support for format=AUTO. You need to use new CLI that has import-dir command that works fines with Python files.

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

5 participants