-
Notifications
You must be signed in to change notification settings - Fork 294
Terminology
IPyKernel
Jupyter
Kernel Specifications
Kernels
NotebookControllers
Python Environments
This is the Python package that supports the kernel protocol and is installed into a Python environment. I.e. to launch a Python process as a kernel, this package is required. All we need to do is run this package in the python environment at let that handle the event loop, its similar to launching a language server or the like for VS Code.
Jupyter is an Application packaged as a python package, installed into a Python environment.
You can have multiple python environments, PythonA, PythonB, Conda Environment A, Conda Environment B, etc..
It can be launched a number of ways (CLI such as jupyter ...
, python -m jupyter ...
).
JSON file with details about a kernel (name, description, CLI information required to launch a Process as a kernel)
A process that run code on behalf of the user in Jupyter.
VS Code lists notebook controllers in the kernel pciker, that can be used to execute code against a notebook. VS Code doesn't prescribe how state is manage. Extension authors are free to span separate processes for each execution of a cell or seprate processes for each notebook, or have a single process for the entire VS Code session.
In Jupyter, we map Kernel specs to a Notebook controller. Thus the kernel picker lists kernel specifications, & when executing code, we start a kernel for that specific notebook. I.e. each kernel is used/owned by a notebook.
Python packages are stored in multiple locations, generally stored in a directory under the Python enviornment.
E.g. if you have an Python environment named PythonA
, you'll have your python pakcages stored in <PythonA Environment Directory/libs/...>
. The exact folder structure isn't relevant.
What is important is the fact that packages installed in PythonA will not be available in PythonB (note its possible to install them globally as well).
I.e. its similar to node.js, you can have separate node_modules
folders. However in Python, (generally) these node_module
folders sit right inside the individual environment.
- 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