question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Header on the sidebar will disappear if followed by ipynb in the _toc.yml

See original GitHub issue

Describe the bug Header will disappear after clicking on the first file whose type is ipynb. For example, the _toc.yml is as the following, notice that “1_1.ipynb” is an “ipynb” file not “md”.

- file: intro.md

- header: Chapter1
- file: 1_1.ipynb
- file: 1_2.ipynb(md)

After compiling to html, everything is OK. If click on the 1_1 in the sidebar, after page refreshed, the header “Chapter1” will disappear, only shows "1_1, 1_2, ". But no problem if click on the 1_2 in the sidebar.

You can see from the screen shot before and after clicking on “Matplotlib” on the sidebar.

image

The header “Packages” dissappears. image

If click on python (also an ipynb), the head “Packages” will come back.

To Reproduce Steps to reproduce the behavior:

  1. Add an ‘ipynb’ file right after and header in “_toc.yml”.
  2. Build
  3. Open the html and click on the “ipynb” file on the sidebar
  4. See “header” disappear.

Environment (please complete the following information):

  • Python Version 3.7
  • Output of jupyter-book --version

Jupyter Book: 0.7.0 MyST-NB: 0.8.3 Sphinx Book Theme: 0.0.23 MyST-Parser: 0.8.2 Jupyter-Cache: 0.2.2

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LinkHScommented, Jun 17, 2020

so, just to be clear then, deleting _build doesn’t fix the problem?

No, it doesn’t work.

0reactions
choldgrafcommented, Jun 17, 2020

so, just to be clear then, deleting _build doesn’t fix the problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table of Contents (2) - Unofficial Jupyter Notebook Extensions
The toc2 extension enables to collect all running headers and display them in a floating window, as a sidebar or with a navigation...
Read more >
Change Log - Jupyter Book
It significantly changes the structure of the output HTML (in particular, the sidebars and article header), so if you defined custom CSS rules,...
Read more >
Table of contents structure — Data Science Study
See How headers and sections map onto to book structure for more information. Throughout the _toc.yml file, - file: entries point to text...
Read more >
Table of Contents disappeared in Jupyter Notebook
I suppose that problem happens when the notebook has been closed wrongly ... However, a workaround is to create a new notebook (with...
Read more >
Changelog for pandoc-2.7 - Hackage - Haskell.org
Texinfo writer: Use header identifier for anchor if present (#4731). ... This can be removed when haskell-foundation/foundation#500 is fixed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found