Significantly improve the Notebook API.