jupyter-book
jupyter-book copied to clipboard
Cant use the same document for multiple chapters/sections
Describe the bug
context In my _toc.yml file i made multiple chapters with sections, and i want to show specific sides (.ipynb) multiple times in different sections or chapters. But instead it displays me an error while building.
expectation I expected that that i can view my .ipynb file parallel in different sections
bug But instead i got an error: Here's an error message I ran into...
The Table of Contents file is malformed: document file used multiple times: 'visualization/ipynb/scatter'
You may need to migrate from the old format, using:
jupyter-book toc migrate C:\Users\JohnT\GithubProjects\data-science-jupyter-book\_toc.yml -o C:\Users\JohnT\GithubProjects\data-science-jupyter-book\_toc.yml
Reproduce the bug
There are two ways to reproduce:
- clone my repo with the dev branch and build it Dev or
- build a new book
- in your _toc.yml create two sections and add the same file to both sections
- build it
List your environment
Jupyter Book : 0.13.0
External ToC : 0.2.4
MyST-Parser : 0.15.2
MyST-NB : 0.13.2
Sphinx Book Theme : 0.3.2
Jupyter-Cache : 0.4.3
NbClient : 0.5.13
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
Not a bug - it is expected behaviour of jupyter-book. You may want to do a workaround (make a copy of notebook under different name) or reclass this issue as enhancement / feature proposal.
@JohnTrunix Did you ever reclass this as a feature proposal? Offhand, I'm not seeing it. If not, can I go ahead and do so?
Hi David, no I didn't create a feature proposal as my project was just a POC. Feel free to create one!
Converted to https://github.com/executablebooks/jupyter-book/issues/2094.