The Text Cell lets you add rich text or markdown content directly into your Livedocs document. It’s perfect for explanations, notes, or mixing narrative with data.
Modes
- WYSIWYG Editor – A What-You-See-Is-What-You-Get interface for formatting text without writing markdown.
- Markdown Mode – Write markdown syntax directly for precise control over formatting.
Dynamic Variables with Jinja
You can insert dynamic variables into your text using Jinja-style templating:
{{ variable_name }}
These variables can come from:
- Other cells (Python, SQL, Input, etc.)
- Computed values in your document
When the document runs, Livedocs replaces these tags with the actual values.
Example Uses
-
Narrative Dashboards
“As of {{today_date}}, sales have reached {{total_sales}} units, exceeding the monthly target by {{growth_percentage}}%.”
-
Data Storytelling
“The highest selling product this quarter is {{top_product}}, with a total revenue of ${{top_product_revenue}}.”
-
Dynamic Reports
“Current analysis is based on the dataset
{{selected_dataset}}
filtered for the date range {{start_date}} → {{end_date}}.”
Tip: Combine Text Cells with Inputs to create interactive narratives that adapt to user selections in real time.