Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022 10:53 AM
You can use it inside the same repo. Provide a whole path from the highest repo level in any notebook inside the repo. As you mentioned, if the file is in another repo, you need to use sys.path.append. To make it permanent, you can try to edit global init scripts.
from directory.sub_directory.my_file import MyClass
"""
Repo
-------\directory
------------------\sub_directory
-------------------------------------\my_file
"""
My blog: https://databrickster.medium.com/