complete on % for magic in notebook

fixes #3954