Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 01:14 AM
Files - if you want to 'import' command to Import code to your notebook, your code must be in a 'File'(this is his name on the Databricks UI) if you want to import a notebook you have to use %run
yes the %run command is a problem, I didn't try to solve it just didn't use it in places that must have it.
but I thunk you can just create a wrapper class that use %run when you are on Databricks and import otherwise.