AnswerDotAI / AnswerDotAI/nbdev

Support for multiple NBs with same `default_exp`

Open
#987 4 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

From the base `nbdev_template` you can duplicate `00_core.ipynb` to make `01_other_core.ipynb` and change the name of the `foo` function declared in this duplicate notebook to `bar`. Then you have two notebooks with the same `default_exp` exporting distinct functions.

The `core.py` generated from then executing `nbdev_export` ignores the `foo` function from `00_core.ipnyb`. And when you run `nbdev_preview`, the sidebar links twice to the same `http://localhost:3000/core.html`.

nbdev1 handles this more cleanly. I think it's an important feature as some awkward decisions around documentationare forced otherwise.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.