Skip to main content

web.write_runtime()

Write the runtime’s files, for an app to serve.

Usage

Source

web.write_runtime(directory)

The runtime that makes interactive tables interactive is two files, gti.js and gti.css, written to directory (made if it isn’t there) for an app to serve as static files (as a Flask app serves its static folder, or Django its static files), and linked to by runtime_tags(url=). Write them again with each new version of Great Tables (as when the app starts, or is built), as a table needs the runtime of its own version.

Parameters

directory: str | Path
The directory to write the files to.

Returns

list[Path]
The files written.