Simple tool for interactively viewing matplotlib figures in the terminal.
- Python 100%
| src/easel | ||
| .gitignore | ||
| pyproject.toml | ||
| README.md | ||
easel
Easel lets you view your plots right in the terminal using IPython.
Installation
I recommend you use uv to manage your packages. The installation is a single command:
uv add git+https://git.leon-adsk.com/leon-adsk/easel.git
Usage
Once installed simply import cell from easel in any script like so:
from easel import cell
import matplotlib.pyplot as plt
@cell
def test_plot():
fig, ax = plt.subplots()
ax.plot([1, 2, 3], [10, 20, 10])
plt.close(fig)
return fig
You can keep this file open in your editor and keep another terminal on a vertical split; there, run uv run easel which will take you to a simple IPython environment. If you run a function with the @cell decorator figures in the output will be rendered in the terminal (provided you are using the Kitty terminal).