jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Cant use the same document for multiple chapters/sections

Open JohnTrunix opened this issue 2 years ago • 2 comments

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:

  1. clone my repo with the dev branch and build it Dev or
  2. build a new book
  3. in your _toc.yml create two sections and add the same file to both sections
  4. 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

JohnTrunix avatar Jul 18 '22 15:07 JohnTrunix

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:

welcome[bot] avatar Jul 18 '22 15:07 welcome[bot]

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.

epogrebnyak avatar Aug 13 '22 08:08 epogrebnyak

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

davidvandebunte avatar Jan 02 '24 17:01 davidvandebunte

Hi David, no I didn't create a feature proposal as my project was just a POC. Feel free to create one!

JohnTrunix avatar Jan 02 '24 18:01 JohnTrunix

Converted to https://github.com/executablebooks/jupyter-book/issues/2094.

davidvandebunte avatar Jan 02 '24 19:01 davidvandebunte