Make `nbdev_export` work outside nbdev repos
When I use nbdev_export to export a notebook, I get the error:
InterpolationMissingOptionError: Bad value substitution: option 'doc_host' in section 'DEFAULT' contains an interpolation key 'user' which is not a valid option name. Raw value: 'https://%(user)s.github.io'
Is this the issue that's being considered here?
Yes it is. The workaround for now is to ensure you have a minimal settings.ini file in your repo
@seeM any chance you could jot down some more details about how you see this working, and what the results should be, in the issue description?
The intention was to have a way to use nbdev’s export functionality from the command line outside of nbdev repos. nb_export from the command line. Maybe in nbdev_export via an arg like fname, or maybe as a separate command
It might also be the case that nbdev_export does that with a few minor tweaks (e.g. to default values of lib_path or requiring args to be passed via the command line if settings.ini doesn’t exist and failing explicitly if they’re not provided)