Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 04:41 AM
Yes let me explain this better.
I have a repository in git.
- The contents of the repo is 3 files (all in the same folder, root):
- "main" notebook,
- "utils" notebook
- requirements.txt.
- The contents of the requirements.txt file specifies the environment needed for me to be able to run the code in my main and utils notebook.
- Because the requirements.txt-file relates directly to the notebooks, I want it to be located close to them (and this is also the standard way of working with any python project).
- When I clone the repo to databricks, I can run my "utils" notebook from my "main" notebook by the magic command %run ./utils
- I cannot however run the magic command %pip install -r requirements
So I just learned that the path to use changes depending on the magic command, but none of the paths I specified in the original text works, but maybe I specified the path incorrectly.
I don't think I quite understand why I can run the utils notebook from the notebook, but not point to a .txt file in the same folder for the sake of version management.