在 VS Code Jupyter Notebook 中创建目录 [英] Creating Table of Contents in VS code Jupyter Notebook

查看:154
本文介绍了在 VS Code Jupyter Notebook 中创建目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio Code 中的 Jupyter 扩展 来维护一个关于 Python 编程的笔记本,我想在其中添加一个目录.我想添加 TOC,因为笔记本变得非常大并且变得难以导航.

I am using the Jupyter extension in Visual Studio Code to maintain a notebook on python programming and I want to add a table of contents inside it. I want to add the TOC as the notebook is becoming very big and is becoming difficult to navigate.

我使用 # 在 Markdown 文件中写了一个标题来正确地构造它们.我还看到了如何通过超链接和构建功能在 Jupyter Notebook 上执行此操作.

I write a heading in markdown files using # to structure them properly. I have also seen it how to do it on Jupyter Notebook both by sing hyperlinks and in build feature.

如果 VS 中的 Jupyter 扩展,该功能是否不可用?如果您对我如何解决这个问题有任何建议,欢迎您

Is the feature not available in case of Jupyter extension in VS? if you have any suggestions on how I can tackle this problem you are most welcome

推荐答案

我是此扩展程序的开发人员.VS Code 有一个现有的大纲"代码编辑功能.此功能正在笔记本电脑中重复使用,用于保存 ToC 导航.在您的左侧面板上,它是>大纲》在您打开的文件下方.它应该填充降价标题并能够导航到它们.像这样:

I'm a developer on this extension. VS Code has an existing "outline" feature for code editing. This feature is being reused in notebooks for holding ToC navigation. On your left side panel it's "> Outline" below your open files. It should populate with markdown headings and be able to navigate to them. Like so:

这篇关于在 VS Code Jupyter Notebook 中创建目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆