Plot() output written to HTML file?

Perhaps, just want to send a plot to index.html in current working directory.
Not sure how to do this with “embedding” (“…accept svg output, which can be embedded in html as is”.). Still working on a process that works for Weave/Documenter, so can’t answer your question quite yet.

Thank you, will try that this evening.

Thanks, trying this but not getting a file output? Looked at help for sprint but it’s not clear how to accomplish.

sprint(show, "text/html", p) 
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n<defs>\n  <clipPath id=\"clip1600\">\n    <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n  ...

Tried to paste the full output, with and without the quotes, into an index.html file, but that doesn’t work (just blank output in browser save for "\n\n\n \n \n\n\n"

(Had an issue with GR backend for plots in REPL, :sob: , but was resolved, see: Resolved: Plot() issue in REPL w/ GR & Qt - Linux Arch)