[SOLVED] Exported function as Command Line Script (nbdev)


I’m trying to augment one function of a nbdev module to be used as a command line script. Taking a look at how nbdev does it, I’ve already included the decorators from fastscript (@call_parse) and the reference to the function in the field console_scripts of the file settings.ini. However, I do not know what is the last step to export the function as a callable command. I tried make dist to see if running the setup file helped, but it didn’t.

Any ideas? Thanks!

I just solved it reading the documentation of fastscript. I was missing a pip install -e . to make the command available.


https://typer.tiangolo.com/ looks good also.

1 Like