question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add .save_html() method

See original GitHub issue

I am using example from documenation:

html = chart.to_html()
with open('whatever.html', 'w') as f:
    f.write(html)

here is suggestion: wrap this code into save_html method, or accept to_html(file=) keyword for saving.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stsievertcommented, Apr 24, 2017

We could provide save as an alias to that function if you think it would be more clear.

I think this a documentation issue, and I’ll try to address this with a PR sometime this week.

0reactions
jakevdpcommented, Mar 27, 2018

In v2, to_html is now gone, and save('chart.html') works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DOMDocument::saveHTML - Manual - PHP
saveHTML() ignores property DOMDocument->encoding. Method saveHTML() saves the html-document encoding, which is specified in the tag <meta> source ...
Read more >
PHP | DOMDocument saveHTML() Function - GeeksforGeeks
The DOMDocument::saveHTML() function is an inbuilt function in PHP which is used to create an HTML document from the DOM representation.
Read more >
How to saveHTML of DOMDocument without HTML wrapper?
Show activity on this post. I'm the function below, I'm struggling to output the DOMDocument without it appending the XML, HTML, body and...
Read more >
DOMDocument::saveHTMLFile - Manual - PHP
DOMDocument::saveHTML() - Dumps the internal document into a string using HTML formatting ... add a note ... Method recorded file in UTF-8 encoding....
Read more >
Save HTML Form Data to a MySQL Database using PHP
For a more detailed version of the techniques shown in th... ... to insert a new record into a database - create a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found