-
Couldn't load subscription status.
- Fork 348
Intellisense for notebooks
Rich Chiodo edited this page Aug 2, 2022
·
23 revisions
Concatentation of the notebook cells
Intellisense in VS code works by sending LSP requests to a separate process (well in most cases, see this for more info)
Something like so:

Intellisense for notebooks works pretty much the same way but with each cell of a notebook being a text document:

This poses a problem for the language server (Pylance) because code from one cell can be referenced in another.
Example:

In that example, the pandas import crosses the cell boundary.
This means pylance cannot just analyze each cell individually.
The solution was changes to LSP:
- message 1
- message 2
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension