TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Automated PDF Reports with Python Notebooks

101 点作者 pplonski86将近 3 年前

6 条评论

apwheele将近 3 年前
FYI for folks if you want to convert jupyter notebooks to html you can use nbconvert:<p><pre><code> jupyter nbconvert --execute example_report.ipynb --no-input --to html </code></pre> I have never been able to get a nice looking report in both html&#x2F;PDF though via the tools to print html to PDF (as opposed to building a nice looking PDF doc using LaTeX directly). So default just worry about making the html look nice.
评论 #31919157 未加载
anyfactor将近 3 年前
That is super interesting. Outside of Jupyter notebooks, I have been generating PDF reports with Jinja and Pandoc.<p>- Convert dataframe and other stuff to HTML render them to usable HTML using Jinja templates.<p>- Generate PDF from html using Pandoc with Xlatex
评论 #31920843 未加载
评论 #31917219 未加载
评论 #31917898 未加载
评论 #31920913 未加载
pplonski86将近 3 年前
Hey! Author here. I&#x27;m working on open-source framework called Mercury. I&#x27;m building it to make notebooks sharing easy, especially with non-technical users. The Mercury can turn Python notebook to web application, dashboard, presentation, REST API or report. It has option to easily hide the code, schedule automatic execution, convert to PDF, and send email notifications. The Github repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;mljar&#x2F;mercury" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mljar&#x2F;mercury</a>
评论 #31918213 未加载
monkeydust将近 3 年前
A lot of B2B enterprise software follows this scenario:<p>- Ingest some client data.<p>- Process client data - so the bit that adds the value for client, normally this will involve some cleaning, normalization, algos, external enrichment.<p>- Produce human readable output as a pdf (tables, graphs, charts etc)<p>- Repeat this on a set schedule.<p>This certainty looks like a solid foundation to use to solve for these types of scenarios
MilStdJunkie将近 3 年前
I wonder why they didn&#x27;t pick up Weasy on the PDF build side? That&#x27;s my go-to if I have access to a Python environment.<p>Probably too resource hungry, or some flippery making Jupiter work with it. I&#x27;ve seen Jupiter all over the place but haven&#x27;t played with it.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Kozea&#x2F;WeasyPrint" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Kozea&#x2F;WeasyPrint</a><p><a href="https:&#x2F;&#x2F;weasyprint.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;weasyprint.org&#x2F;</a>
ropeladder将近 3 年前
This looks pretty cool, is there a way to do column layout (or any kind of positioning) when making a PDF, or is it just flowing the notebook html?
评论 #31918042 未加载