Use nbstripout to remove metadata from previous run. pip install nbstripout
and then run in terminal following command. nbstripout yourfilename.ipynb