Added %export_magic to replace deprecated export_notebook function