How to import python modules in a notebook?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2026 07:23 AM
I have a job with a notebook task that utilizes python modules in another folder than the notebook itself. When I try to import the module in the notebook, it raises module not found error. I solved the problem using sys.path
But I am curious if there is a more elegant approach to handle this, maybe to set a root path for the notebook task in the yaml configuration?