notebook example for SPA