bundles / IPython 9.15.0.dev / IPython / core / magics / osm / OSMagics / writefile
function
IPython.core.magics.osm:OSMagics.writefile
Signature
def writefile(self, line, cell)Summary
[1;34m::
Extended Summary
%[0m[1;35mwritefile[0m [[32m-a[0m] [32mfilename[0m
Write the contents of the cell to a file.
The file will be overwritten unless the -a (--append) flag is specified.
[1;34mpositional arguments:[0m
filename file to write
[1;34moptions:[0m
-a, --append Append contents of the cell to an existing file. The file will be created if it does not exist.
Aliases
IPython.core.magics.OSMagics.writefile