Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 06:27 PM
Works for me to upload my python file to dbfs using the databricks CLI:
dbfs cp mymodule.py dbfs:/path/to/module/mymodule.py --overwrite
Then the following works:
import sys
sys.path.append('/dbfs/path/to/module')
#the file is /dbfs/path/to/module/mymodule.py
import mymodule