1. 安装
pip install pdfkit
pip install Jinja2
同时安装 wkhtmltopdf;
2. 使用Plotly + Jupyter notebook + xhtml2pdf生成pdf report
https://plotly.com/python/v3/pdf-reports/
3. 利用pdf_reports包生成pdf,
https://github.com/Edinburgh-Genome-Foundry/pdf_reports
上述方法都有一个特点,需要借助一定的HTML代码生成最后的pdf文档。
目前没有找到类似于R语言中的Rmarkdown方便生成pdf文档。