Metadata-Version: 2.4
Name: codeplots
Version: 0.2.0
Summary: Tiny matplotlib shortcuts for plotting from VS Code.
Author: LessonTime AI LLC
License: MIT License
        
        Copyright (c) 2026 LessonTime AI LLC
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/lessontimeai/CodePlot
Project-URL: Issues, https://github.com/halidziya/codeplot/issues
Keywords: plotting,matplotlib,vscode,visualization,shortcuts
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: matplotlib
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# codeplots

Tiny matplotlib shortcuts for plotting from VS Code, especially over SSH.
It handles conversions such as `.detach().cpu().numpy()` for you and keeps a
timestamped plot history when an interactive window is not practical.

```python
import codeplots as cp

cp.plot([1, 3, 2, 5])          # auto line plot
cp.plot(image_array)           # auto image plot
cp.scatter(x, y)
cp.hist(values)
cp.bar({"a": 3, "b": 7})
cp.heatmap(matrix)
```

All helpers return a matplotlib `Figure`.
Plots are saved automatically to `.plots/` with timestamped names like
`260428_193012_123456.svg`, then opened in VS Code with `code <file>`.

```python
fig = cp.plot(values)
cp.plot(values, save=False)      # skip autosave
cp.plot(values, prefix="loss")   # saves as .plots/loss_260428_193012_123456.svg
```

Pass `filename="custom.svg"` when you want an exact filename; it takes
precedence over `prefix`. If it has no extension, `.svg` is added.

## Shortcuts

`plot`, `show`, `line`, `scatter`, `hist`, `bar`, `image`, `images`,
`heatmap`, `box`, `violin`, `pie`, `loss`, `compare`

## Install

```bash
pip install codeplots
```
