I started exploring using pytablewriter ( https://github.com/thombashi/pytablewriter ) to generate markdown tables, but ended up instead opting for pandas .to_html() to generate tabular output for an output slidedeck.
--tony On Sunday, 19 February 2017 18:21:43 UTC, Braun Brelin wrote: > > Yes, but I've got lots and lots of these tables in lots of cells. I don't > really want to have to manually convert my html tables to markdown format. > Besides, isn't markdown supposed to be a superset of HTML? > > > > On Sun, Feb 19, 2017 at 1:50 PM, Steve Spicklemire <[email protected] > <javascript:>> wrote: > >> Did you try using markdown rather than HTML? >> >> | Colum 1 | Column 2 | >> |------------------------------------|-----------------------------------| >> | Thing 1 | Thing 2 | >> | Thing 3 | Think 4 | >> >> That works for me. >> >> -steve >> >> >> > On Feb 19, 2017, at 1:42 AM, Braun Brelin <[email protected] >> <javascript:>> wrote: >> > >> > Unfortunately, it doesn't make any difference. It doesn't seem to >> recognize the <table> </table> element and just displays the table contents >> directly. >> > >> > >> > >> > On Sat, Feb 18, 2017 at 10:48 PM, Steve Spicklemire < >> [email protected] <javascript:>> wrote: >> > I think markdown works for tables. >> > >> > thanks, >> > -steve >> > >> > On Feb 18, 2017, at 4:32 PM, Braun Brelin <[email protected] >> <javascript:>> wrote: >> > >> >> Hi, >> >> >> >> I have a jupyter note book that has a number of cells with embedded >> HTML tables that look like this: >> >> >> >> <table width='750px', align='left'> >> >> <tr> >> >> <td> >> >> <p style='font-family:courier'> >> >> some text here >> >> </p> >> >> </td> >> >> </tr> >> >> </table> >> >> >> >> When I run jupyter nbconvert --to pdf mynotebook.ipynb it fails to >> render the HTML tables at all. >> >> I end up with text that looks like: >> >> apache: # ID declaration pkg: # state declaration - installed # >> function declaration >> >> Rather than a table with one element that has three spaced lines in it. >> >> >> >> I'm running this on an Ubuntu 14.04 system. >> >> >> >> Any help appreciated. >> >> >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> Groups "Project Jupyter" group. >> >> To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected] <javascript:>. >> >> To post to this group, send email to [email protected] >> <javascript:>. >> >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/7f2f6a6f-923b-4df7-b62e-3af037773f57%40googlegroups.com >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > >> > -- >> > You received this message because you are subscribed to a topic in the >> Google Groups "Project Jupyter" group. >> > To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/jupyter/8DjjFR51V6s/unsubscribe. >> > To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> > To post to this group, send email to [email protected] >> <javascript:>. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/B1968EBE-5CCD-4CB9-91FD-5391E58CC633%40gmail.com >> . >> > >> > For more options, visit https://groups.google.com/d/optout. >> > >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "Project Jupyter" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected] <javascript:>. >> > To post to this group, send email to [email protected] >> <javascript:>. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/CAJ2Ovpgi1OyeNc%3D_4HF0ZD4woqMRRaZ3KPkfN%2B7CYOy1fxwsAQ%40mail.gmail.com >> . >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Project Jupyter" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/jupyter/8DjjFR51V6s/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jupyter/30505B4D-0074-4A07-8A08-09F3E4A3F3A5%40gmail.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/de948bac-2001-4dc5-bf54-e17aee8def4d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
