nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Make `nbdev_export` work outside nbdev repos

Open seeM opened this issue 3 years ago • 4 comments

seeM avatar Aug 08 '22 05:08 seeM

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?

gautam-e avatar Aug 10 '22 14:08 gautam-e

Yes it is. The workaround for now is to ensure you have a minimal settings.ini file in your repo

seeM avatar Aug 11 '22 06:08 seeM

@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?

jph00 avatar Sep 04 '22 20:09 jph00

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)

seeM avatar Sep 04 '22 22:09 seeM