[sage-support] Re: jupyter notebook writefile magic: no end-of-line at the end

2018-05-01 Thread slelievre
Le mardi 1 mai 2018 13:17:02 UTC+2, John Cremona a écrit : > > I was using the jupyter notebook's magic %%writefile, where > you put "%%writefile [-a] filename.py" at the top of a cell and > then evaluating the cell writes the cell's contents to the file > (overwriting by default, or appending if

[sage-support] jupyter notebook writefile magic: no end-of-line at the end

2018-05-01 Thread John Cremona
I was using the jupyter notebook's magic %%writefile, where you put "%%writefile [-a] filename.py" at the top of a cell and then evaluating the cell writes the cell's contents to the file (overwriting by default, or appending if you give the -a flag). I found that the file so written to has the co