The TOC links work well within the jupyter notebooks (even in VScode notebook mode). But it appears that when the notebook is rendered by sphinx (for the website), it generates additional anchor links for its own TOC list and this breaks the TOC links embedded in the jupyter notebook.