Back to Blog
27 May 2026

How to Anchor Notebook Outputs in Word (And Re-Run Safely)

Link Python cells to fixed spots in your document with InkRider anchors. Update tables and text in place without copy-paste or broken templates.

Jakub Pecanka avatar
Jakub Pecanka
InkRider Team

Copy-paste from Excel into Word is where good reports go to die. Numbers drift, formatting snaps, and nobody knows which paragraph is still "live."

Anchoring fixes that: one cell, one place in the document, update on re-run.

What an Anchor Is

InkRider uses Word content controls (native Office tags) as named placeholders. Run a cell with an anchor and output lands there. Run again and the same region updates. No orphan text boxes, no manual find-and-replace.

Anchors survive save, share, and reopen because the link lives in the .docx.

Quick Setup

  1. Click in the document where output should go.
  2. Run the cell (Shift+Enter) or use Anchor to document on the cell toolbar.
  3. Change your Python, re-run. The anchor refreshes in place.

Markdown, tables, images, and equations can all anchor. Need the same KPI in the summary and an appendix? Duplicate the content control in Word. One cell can feed both.

Drift When Humans Edit

Colleagues will tweak anchored text. InkRider drift indicators flag when document content no longer matches what the cell last produced, so you do not overwrite lawyer edits by accident. Fix by re-anchoring, or keep manual prose outside the control.

Frozen anchors lock regions read-only until you thaw them. Useful for signed-off sections next to live data blocks.

Batch Refresh

For report packs, queue notebooks in the Execution Tool, run once, and let anchored cells update across the file. Pair with import options like Run after import and Auto-anchor cells when onboarding an existing .ipynb library.

import pandas as pd

df = pd.read_csv("/vfs/q1_actuals.csv")
print(df.to_markdown(index=False))

Anchor that table to your financial appendix. Next quarter: drop in a new CSV, re-run the queue, done.

Anchors turn Word from a paste target into a live surface your notebooks own.

Related Documentation