Writing & StyleStyle guide

Using Jupyter Notebook Snippets in Documentation

Using Jupyter Notebook Snippets in Documentation records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Quick answer

For Microsoft Learn content sourced from Jupyter notebooks, use the platform’s supported notebook snippet metadata and reference syntax so the intended cell content is rendered correctly.

Key details

Core IssueJupyter notebook snippet references
RegisterMicrosoft Learn technical documentation

Important caveats

Scope Boundary

This is Microsoft Learn contributor syntax for notebook-backed snippets; it is not a general Jupyter authoring rule outside that documentation pipeline.

Further guidance

Content

For Microsoft Learn content sourced from Jupyter notebooks, use the platform’s supported notebook snippet metadata and reference syntax so the intended cell content is rendered correctly.

Purpose

Keep technical documentation readable, reusable, and unambiguous for readers while following current Microsoft Learn contributor conventions.

Sources and evidence

Sources are shown with the role they play in this guide. Historical or style-sensitive claims are kept within the evidence boundary described above.

  1. How to include code in docs — Microsoft Learn Contributor Guide (opens in a new tab)Microsoft · Current Microsoft Learn contributor guidance on including code in documentation, including link/code styling, code-block quality checks, screenshots, validation, highlighting, scrollability, bad-code labeling, and in-repository snippet references.

Related guides

Writing & Style

Using Interactive Code Snippets in Documentation

Using Interactive Code Snippets in Documentation records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Writing & Style

Automating Code Validation in Documentation

Automating Code Validation in Documentation records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Nonclickable URLs in Technical Documentation

Formatting Nonclickable URLs in Technical Documentation records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Writing & Style

Selecting Line Ranges in Referenced Code Snippets

Selecting Line Ranges in Referenced Code Snippets records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Writing & Style

Using Approved Language Tags in Fenced Code Blocks

Using Approved Language Tags in Fenced Code Blocks records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal grammar rule.

Writing & Style

Using Capitalized INCLUDE Syntax in Microsoft Learn

Using Capitalized INCLUDE Syntax in Microsoft Learn records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal writing rule.

Writing & Style

Using Consistent Bullet Markers in Learn Markdown

Using Consistent Bullet Markers in Learn Markdown records a distinct Microsoft Learn authoring convention and keeps it scoped to that documentation environment rather than presenting it as a universal writing rule.

Explore the topic