Is it possible to perform backtesting in a notebook environment (or local linux env) for programmatic access to the result metrics (eg. PSR) ?

When developing a python strategy, is it possible to debug / test using small data slices outside of scheduling a full backtest of the main.py strategy?