Back to Library

Automated Report Generator (Notebook → PDF)

NotebooksNotebooks●●IntermediatereportingautomationPythonJupyter

Prompt

Design a Jupyter notebook that automatically generates a formatted report from data.

Report title: [REPORT NAME]
Report recipient: [WHO RECEIVES THIS REPORT]
Frequency: [DAILY / WEEKLY / MONTHLY]
Data source: [FILE NAME OR DATABASE TABLE]
Key metrics to include: [LIST 4-6 METRICS OR SECTIONS]

The notebook should:
1. Load and process the data
2. Compute all metrics
3. Generate charts (one per key metric)
4. Use a Jinja2 HTML template to assemble a report with:
   - Header with logo placeholder, report date, and recipient
   - Executive summary section (auto-generated from metrics)
   - One section per metric with chart + 2-sentence interpretation
   - Footer with data source and generated timestamp
5. Export as HTML (and optionally PDF via weasyprint)
6. Include a final cell that emails the report (stub code using smtplib)

Output all code with clear section headers and comments.
Generate sample demo data

Generic sample context ready for adaptation.

Related Prompts

Notebooks

Jupyter Notebook Explainer

I have a Jupyter notebook I need explained. Break it down cell by cell and give me a plain-English summary. Context: [WHAT THIS NOTEBOOK IS FOR / WHO WROTE IT]...
Notebooks●●IntermediateWorkflow-ready
Notebooks

Data Cleaning Notebook Builder

Write a complete, ready-to-run Jupyter notebook for cleaning and validating my dataset. Dataset description: [DESCRIBE YOUR DATA, e.g. 'CSV of sales transactio...
Notebooks●●●AdvancedSkill-readyWorkflow-ready
Notebooks

Python Script to Notebook Converter

Convert this Python script into a well-structured Jupyter notebook. Script purpose: [WHAT THIS SCRIPT DOES] Target audience: [WHO WILL USE / READ THIS NOTEBOOK...
Notebooks●●●AdvancedWorkflow-ready
Notebooks

EDA (Exploratory Data Analysis) Notebook

Write a complete exploratory data analysis (EDA) Jupyter notebook for my dataset. Dataset: [DATASET NAME OR DESCRIPTION] Columns and types: [LIST COLUMN NAMES ...
Notebooks●●●AdvancedSkill-readyWorkflow-ready
Back to Library