Metadata-Version: 2.4
Name: spyder-eval
Version: 0.1.0
Summary: Evaluate Spyder code cells by index from an overview dialog
Home-page: https://github.com/hruskamiro/spyder-eval
Author: Miroslav Hruska
Author-email: hruska.miro@gmail.com
License: MIT
Project-URL: Source, https://github.com/hruskamiro/spyder-eval
Project-URL: Issues, https://github.com/hruskamiro/spyder-eval/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: X11 Applications :: Qt
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: spyder<7,>=5.4
Requires-Dist: qtpy
Dynamic: license-file

# spyder-eval

Spyder plugin that lists file cells and evaluates a chosen one by index.

Status: Alpha

Supports Spyder `>=5.4,<7`.

## Quick Start

Default shortcut: **`Ctrl+Alt+E`**

Install the latest released version:

```bash
pip install spyder-eval
```

Then restart Spyder.

## Features

- Lists `# %%` cells in the current file with 1-based indices
- Shows line numbers and cell titles in a preview dialog
- Highlights the current cell and the currently selected cell
- Lets you choose a cell by typing its index or using `Up`/`Down`
- Runs the selected cell, from the selected cell to the current location, or from the selected cell to the end of file
- Provides keyboard-friendly dialog actions and shortcuts

## Behavior

When triggered, Spyder Eval opens a dialog that shows detected cells (`# %%`) with:
- Cell index (1-based)
- Line number
- Cell title from the marker line (or `(unnamed)`)

Type a cell index and press Enter:
- Cursor jumps to the selected cell
- The plugin triggers Spyder's run-cell action for that cell

## Installation

Inside the same environment where Spyder runs:

Install the latest released version from PyPI:

```bash
pip install spyder-eval
```

Or install directly from GitHub:

```bash
pip install "git+https://github.com/hruskamiro/spyder-eval.git@main"
```

Then restart Spyder.

## Verify Plugin Is Loaded

In **Spyder Internal Console**:

```python
p = spy.window.get_plugin("spyder_eval")
print(p)
```

If loaded, `p` is not `None`.

## Notes

- This first version expects cell markers using `# %%`.
- Execution uses Spyder's available run-cell method/action in your environment.
