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.

nested subfolders are not found by 'jupyter-book toc' if no files are in each level

See original GitHub issue

my folder structure was something like

- mybook
   - notebooks
      - chapter1
         - notebook1.ipynb
         - notebook2.ipynb

running jupyter-book toc mybook didn’t find the notebooks. Once I added an ipynb file into the notebooks folder, it worked.

Not sure if that’s intentional.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
choldgrafcommented, May 12, 2020

OK - a couple quick thoughts:

when I clone and try to build your book, I also get error/warnings but different ones. Mine are:

WARNING: toctree contains reference to document '03-unsupervised_learning/aml-11-calibration' that doesn't have a title: no link will be generated

and I think that’s because many of your content files don’t have titles inside them. Right now the title: field of the toc.yml file will over-ride the title in the navigation bar, but it doesn’t set the title…you’re still expected to have the title in the page itself. This feels confusing to me now that I see it…

For the errors you’re reporting, I do suspect it might be an issue with (I’m assuming) windows. I actually run Windows myself so I can give it a shot probably tomorrow (I use WSL, so even though I have windows, I don’t have a development environment set up in it)

One thing that comes to mind - I feel like we should ask people to put / in their _toc.yml files regardless of the OS. If we make the behavior of / change between OS’s (at least when it comes to file paths) then we might be opening up a can of worms with CI/CD systems on repositories that were built with windows

1reaction
amuellercommented, May 11, 2020

In case you want to have a look: https://github.com/amueller/Machine_Learning_in_Python

I removed the index files and I had the same problem btw. I wonder if there’s a path issue, I’m on the OS that uses backslashs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Structure the Table of Contents - Jupyter Book
This is a YAML file (called _toc.yml ) that defines a structure that Jupyter Book uses to create the order and nesting of...
Read more >
sphinx_external_toc - PyPI
This extension facilitates a top-down approach to defining the site-map structure, within a single YAML file. ToC graphic. It also allows for documents...
Read more >
How-to and FAQ — Data Science Study - GitHub Pages
If you have a Google account, you can use Google Analytics to collect some ... to a certain output (but Jupyter Book does...
Read more >
Jupyter books in Azure Data Studio - WickTech Blog
Jupyter Book : A collection of SQL, PowerShell, and Python-based ... URL will result in a Missing file error when the book is...
Read more >
Jupytext documentation
Jupytext includes an extensions for Jupyter Notebook that adds a Jupytext section in the File menu. If the extension was not automatically ...
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