Fix missing imports, etc. in notebook.