https://github.com/spyder-ide/spyder-line-profiler
This is a plugin to run the python line profiler from within the spyder editor.
https://github.com/spyder-ide/spyder-line-profiler
profiler python spyder spyder-plugin
Last synced: 3 months ago
JSON representation
This is a plugin to run the python line profiler from within the spyder editor.
- Host: GitHub
- URL: https://github.com/spyder-ide/spyder-line-profiler
- Owner: spyder-ide
- License: mit
- Created: 2015-09-03T02:45:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-10T16:55:07.000Z (7 months ago)
- Last Synced: 2025-06-21T01:36:11.082Z (4 months ago)
- Topics: profiler, python, spyder, spyder-plugin
- Language: Python
- Homepage:
- Size: 379 KB
- Stars: 35
- Watchers: 7
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# Spyder line profiler plugin
## Project details

[](https://www.anaconda.com/download/)
[](https://www.anaconda.com/download/)
[](https://pypi.python.org/pypi/spyder-line-profiler)
[](https://gitter.im/spyder-ide/public)
[](#backers)
[](#sponsors)## Build status
[](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Windows+tests%22)
[](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Linux+tests%22)
[](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Macos+tests%22)
[](https://codecov.io/gh/spyder-ide/spyder-line-profiler/branch/master)## Description
This is a plugin to run the Python
[line_profiler](https://pypi.python.org/pypi/line_profiler)
from within the Python IDE [Spyder](https://github.com/spyder-ide/spyder).The code is an adaptation of the profiler plugin integrated in Spyder.
## Installation
To install this plugin, you can use either ``pip`` or ``conda`` package
managers, as follows:Using conda (the recommended way!):
```
conda install spyder-line-profiler -c conda-forge
```Using pip:
```
pip install spyder-line-profiler
```## Usage
Add a `@profile` decorator to the functions that you wish to profile then
Shift+F10 (line profiler default) to run the profiler on the current script,
or go to `Run > Run line profiler`.The results will be shown in a dockwidget, grouped by function. Lines with a
stronger color take more time to run.## Screenshot

## Contributing
Everyone is welcome to contribute!
## Sponsors
Spyder and its subprojects are funded thanks to the generous support of
[](https://www.quansight.com/)[](https://numfocus.org/)
and the donations we have received from our users around the world through [Open Collective](https://opencollective.com/spyder/):
[](https://opencollective.com/spyder#support)