-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support outline with notebooks #98173
Comments
TOC support in notebook was brought up in sync meetings a couple of times, and I read through users' feedback in microsoft/vscode-jupyter#1348 and did a brief review of how RStudio and Jupyter Lab TOC extension work. The TOC view/pane in RStudio or Jupyter consists of
We already support markdown headers in TOC quick pick ( |
I think it's more than that (customer's expectations). Not sure even if we had symbols in the outline view if that would meet expectations. See all the stuff the TOC extension can do here: Perhaps this needs some QP studies to confirm, but I think the first problem is finding the 'outline' tab or the quick pick. Users won't expect to look there. I didn't even know about the CTRL+SHIFT+O option. |
@rchiodo thanks for the link!
While doing my investigation in Jupyter Lab and RStudio, I found myself have to google "TOC in Jupyter/RStudio" as I can't find them myself (I'm not using the traditional UI so I missed the "table of contents" button). It has some learning curve and different Jupyter frontend varies. The outline view in VS Code might share the same discoverability issue but it's well known to existing VS Code users. The features listed in https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/toc2/README.html are (excluding features in exporting HTML)
They are good features but IMHO none of them are critical/blocking. My suggestion for this is making sure the outline view has the right info, and then we can explore how we can enrich it (for example, we can explore if we can contribute actions to TOC entries, just like every other tree view). @jrieken may I ask again why the outline view can't get the symbols info from the notebook? |
I think this part is crux:
I don't know that jupyter users are existing VS code users. Or at least we're trying to get those that aren't. But a QP study would prove/disprove this hypothesis. |
yup, let's introduce this to them first and see what's the feedback. I think for users in microsoft/vscode-jupyter#1348, VS Code is not foreign to them. |
There are no blocking reasons except for this being a lot of work and therefore we kinda postponed it. Today, the outline (and breadcrumbs) model is based around a single text document and that would need to be changed. With quick outline I have explored some TOC provider ideas and that can in theory be driving the outline and breadcrumbs as well. So, given the amount of work this requires we should be somewhat certain that we want this. Tho, I'd say it would be nice, outline, breadcrumbs and quick outline would work for notebooks and "normal" editors and for notebooks information could be "nested", like high level cell outline and then per cell a document outline |
Issue Type: Bug
Using a GH Issues notebook.
VS Code version: Code - Insiders 1.46.0-insider (da3bf75, 2020-05-19T10:04:14.981Z)
OS version: Darwin x64 18.7.0
Remote OS version: Linux x64 5.3.0-1020-azure
The text was updated successfully, but these errors were encountered: