How spyder-ide/spyder works
Spyder is a desktop scientific Python development environment. Its principal workflow is a user working in the editor, requesting language assistance, and running or debugging code in an interactive console. The architecture also includes project/file browsing, variable inspection, help, and a plugin-based Qt application. The tree and source index establish these product areas, but many plugin implementations were not excerpted; their connections are therefore omitted or marked unverified rather than presented as inspected call paths.
Main entry points: mainwindow.py Main window · new_api.py Plugin API · client.py IPython console · icon_manager.py Icon manager
Components 23
Application framework
- Main window
spyder/app/mainwindow.py - Plugin API
spyder/api/plugins/new_api.py - Plugin registry
spyder/api/plugin_registration/registry.py
Code workflow
- Code editor
spyder/plugins/editor/widgets/codeeditor/codeeditor.py - Editor plugin
spyder/plugins/editor/plugin.py - Code completion
spyder/plugins/completion/providers - Language servers
spyder/plugins/completion/providers/languageserver/provider.py - File explorer
spyder/plugins/explorer/plugin.py - Help browser
spyder/plugins/help/plugin.py
Execution and inspection
- IPython console
spyder/plugins/ipythonconsole/widgets/client.py - Kernel manager
spyder/plugins/ipythonconsole/utils/manager.py - Qt console client
external-deps/qtconsole/qtconsole/client.py - Spyder kernel
external-deps/spyder-kernels/spyder_kernels/console/kernel.py - Debugger
spyder/plugins/debugger/plugin.py - Variable explorer
spyder/widgets/collectionseditor.py
Shared foundation
- Configuration
spyder/config - Config observers
spyder/api/config/mixins.py - Widget framework
spyder/api/widgets/mixins.py - UI and system utilities
spyder/utils - Icon manager
spyder/utils/icon_manager.py - Image paths
spyder/utils/image_path_manager.py - Themes and styles
spyder/utils/theme_manager.py
Other components
- Developer
Connections 25
- Developer → Main window: uses
- Main window → Plugin registry: loads plugins
spyder/app/mainwindow.py - Main window → Configuration: reads settings
spyder/app/mainwindow.py - Main window → Plugin API: uses API
spyder/api/plugins/new_api.py - Plugin API → Config observers: uses
spyder/api/plugins/new_api.py - Plugin API → Widget framework: uses
spyder/api/plugins/new_api.py - Plugin API → Icon manager: uses
spyder/api/plugins/new_api.py - Plugin API → Themes and styles: uses
spyder/api/plugins/new_api.py - Widget framework → Icon manager: uses
spyder/api/widgets/mixins.py - Widget framework → Image paths: resolves images
spyder/api/widgets/mixins.py - Config observers → Configuration: reads settings
spyder/api/config/mixins.py - Icon manager → Configuration: reads settings
spyder/utils/icon_manager.py - Icon manager → Image paths: resolves images
spyder/utils/icon_manager.py - Themes and styles → Configuration: reads settings
- Code editor → Code completion: requests assistance
- Code completion → Language servers: uses provider
- IPython console → Kernel manager: uses manager
- Kernel manager → Qt console client: creates client
spyder/plugins/ipythonconsole/utils/manager.py - Qt console client → Spyder kernel: connects to
- IPython console → Variable explorer: inspects values
- IPython console → Debugger: debugs execution
- Main window → Editor plugin: hosts plugin
- Main window → IPython console: hosts plugin
- Main window → File explorer: hosts plugin
- Main window → Help browser: hosts plugin