nbdev-new does not work as expected

Open
#1,583 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
cli, devtools

Research direction

Reproduce the failure with nbdev-new, then inspect nbdev/cli.py and nbdev/config.py around nbdev_create_config and the author inference shown in the traceback. Determine the expected behavior when Git author information is unavailable, and verify that the command handles that case correctly.

Written by the indexing model from the issue text.

Description

sys.exit(nbdev_new())
~~~~~~~~~^^
File "/lambda/nfs/jan2026/research/op_resilience/.pixi/envs/default/lib/python3.13/site-packages/fastcore/script.py", line 170, in _f
return tfunc(**merge(args, args_from_prog(func, xtra)))
File "/lambda/nfs/jan2026/research/op_resilience/.pixi/envs/default/lib/python3.13/site-packages/nbdev/cli.py", line 88, in nbdev_new
nbdev_create_config.wrapped(**kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/lambda/nfs/jan2026/research/op_resilience/.pixi/envs/default/lib/python3.13/site-packages/nbdev/config.py", line 128, in nbdev_create_config
if not author: raise ValueError("Could not infer author from git. Please pass --author explicitly.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Could not infer author from git. Please pass --author explicitly.

please have a look

Dominant language
Jupyter Notebook
Stars
5.3k
Forks
514
Avg merge
2d 30m
Merged PRs (30d)
8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/nbdev

All issues in AnswerDotAI/nbdev

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.