GT.write_raw_html
GT.write_raw_html(
gt,
filename,='utf-8',
encoding=None,
newline=False,
make_page=False,
all_important )
Write the table to an HTML file.
This helper function saves the output of GT.as_raw_html()
to an HTML file specified by the user.
Parameters
gt : GT
-
A GT object.
filename :
str
|Path
-
The name of the file to save the HTML. Can be a string or a
pathlib.Path
object. encoding :
str
= 'utf-8'-
The encoding used when writing the file. Defaults to ‘utf-8’.
newline :
str
| None = None-
The newline character to use when writing the file. Defaults to
os.linesep
.
Returns
: None
-
An HTML file is written to the specified path and the method returns
None
.