Scaffolding learning using interactive notebooks