You can clone with
HTTPS or Subversion.
I noticed recently that doing %loadpy on a file with a # coding: utf-8 magic comment causes a problem, because the compiler doesn't like encoding declarations in a unicode string. We should ideally detect this, use it to correctly decode the file ourselves, and then remove the encoding declaration from the code that appears.
# coding: utf-8
In : print 123
In : %save foo.py 1
The following commands were written to file `foo.py`:
In : %loadpy foo.py
In : # coding: utf-8
...: print 123
File "<ipython-input-4-8226810be253>", line 0
SyntaxError: encoding declaration in Unicode string (<ipython-input-4-8226810be253>, line 0)
Strip out encoding declaration in %loadpy