Guide de Syntaxe Markdown Jupyter Notebook

Meistern Sie die Markdown-Syntax von Jupyter Notebook mit diesem vollstaendigen Leitfaden. Lernen Sie LaTeX-Mathematikformeln, Code-Bloecke, Tabellen, MyST-Erweiterungen und erweiterte Formatierungstechniken fuer Data-Science-Dokumentation. Perfekt fuer Python-Entwickler, Data Scientists und Forscher.

Recherche Rapide de Syntaxe

💡 Suchtipps:
Probieren Sie: „math" fuer FormelnProbieren Sie: „table" fuer Tabellen-SyntaxProbieren Sie: „code" fuer Code-BloeckeProbieren Sie: „link" fuer Links und BilderVersuchen: "html" fuer erweiterte Funktionen
💡 Tipp: Die Suche filtert Inhalte in Echtzeit. Suche loeschen, um alle Abschnitte anzuzeigen.

Grundlegende Markdown-Syntax fuer Jupyter Notebook

Ueberschriften

# Heading Level 1
## Heading Level 2
### Heading Level 3
#### Heading Level 4
##### Heading Level 5
###### Heading Level 6

Ueberschrift Ebene 1

Ueberschrift Ebene 2

Ueberschrift Ebene 3

Ueberschrift Ebene 4

Ueberschrift Ebene 5
Ueberschrift Ebene 6

Mise en Forme du Texte

*italic text* or _italic text_
**bold text** or __bold text__
***bold italic*** or ___bold italic___
~~strikethrough~~
`inline code`

texte italique ou texte italique

texte gras ou texte gras

gras italique ou gras italique

durchgestrichener Text

code en ligne

Listes

# Unordered list
- Item 1
- Item 2
  - Sub-item 2.1
  - Sub-item 2.2

# Ordered list
1. First item
2. Second item
   1. Sub-item 2.1
   2. Sub-item 2.2

Ungeordnete Liste:

  • Element 1
  • Element 2
    • Unterelement 2.1
    • Unterelement 2.2

Geordnete Liste:

  1. Erstes Element
  2. Zweites Element
    1. Unterelement 2.1
    2. Unterelement 2.2

Liens et Images

# Links
[Link text](http://example.com)
[Link with title](http://example.com "Link title")

# Images
![Alt text](https://via.placeholder.com/150x100)
![Image with title](https://via.placeholder.com/150x100 "Image title")

# Reference-style links
[Link text][1]
[1]: http://example.com

Images :

Texte altBild mit Titel

Referenzstil-Links:

Texte du lien

Formules LaTeX et Blocs de Code Jupyter Notebook

Mathematische Formeln

# Inline math formula
$E = mc^2$

# Block math formula
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

# Complex math expression
$$
f(x) = \begin{cases}
x^2 & \text{if } x \geq 0 \\
-x^2 & \text{if } x < 0
\end{cases}
$$

Inline-Mathematikformel:

Einsteins beruehmte Gleichung : E = mc²

Block-Mathematikformel:

-∞ e-x² dx = √π

Gausssches Integral

Komplexer mathematischer Ausdruck:

f(x) = {
x²     falls x ≥ 0
-x²    falls x < 0
}

Stueckweise Funktion

Gaengige mathematische Symbole:

α β γ

Lettres grecques

∑ ∏ ∫

Operatoren

≤ ≥ ≠

Relations

Blocs de Code

# Python code block
```python
def hello_world():
    print("Hello, World!")
    return True
```

# Code block with line numbers
```python {.line-numbers}
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
plt.plot(x, y)
```

Bloc de code Python :

def hello_world():
    print("Bonjour le monde !")
    return True

Code-Block mit Syntax-Hervorhebung:

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
plt.plot(x, y)

MyST Markdown Extensions for Jupyter

Admonitions

```{note}
This is a note box
```

```{warning}
This is a warning box
```

```{tip}
This is a tip box
```

```{important}
This is an important box
```
This is a note box
This is a warning box
This is a tip box
This is an important box

Cross References

# Label definition
(my-label)=
## My Section

# Reference labels
{ref}`my-label`
{ref}`Custom text <my-label>`

# Reference figures
{numref}`figure-{number}`
{ref}`Figure caption <my-figure>`

Label definition:

My Section

Reference labels:

Reference figures:

Figures & Tables

# Figure
```{figure} ./images/example.png
:name: my-figure
:width: 300px

Figure caption text
```

# Table
```{list-table} Table title
:header-rows: 1
:name: my-table

* - Column 1
  - Column 2
* - Row 1 Col 1
  - Row 1 Col 2
* - Row 2 Col 1
  - Row 2 Col 2
```

Figure:

Example
Figure caption text

Table title:

Column 1Column 2
Row 1 Col 1Row 1 Col 2
Row 2 Col 1Row 2 Col 2

Advanced Jupyter Markdown Features

HTML Blocks

# Colored alert boxes
Tip: Use blue boxes for tips and information
Warning: Use yellow boxes for warnings
Success: Use green boxes for success messages
Danger: Use red boxes for danger warnings
Tip: Use blue boxes for tips and information
Warning: Use yellow boxes for warnings
Success: Use green boxes for success messages
Danger: Use red boxes for danger warnings

Internal Links

# Link to section
[Section Title](#section-title)

# Section link with ID

[Section Title](#section_ID)

# Link to other page
[Other Page](other-page.md)

Example Section Title

This is an example section that can be linked to.

External page link:

Other Page

Special Characters

# Geometric shapes
→ (→)
← (←)
↑ (↑)
↓ (↓)
★ (★)
☆ (☆)
♠ (♠)
♣ (♣)
♥ (♥)
♦ (♦)

# Mathematical symbols
≤ (≤)
≥ (≥)
≠ (≠)
∞ (∞)
∑ (∑)
∏ (∏)
√ (√)

Geometric shapes:

Mathematical symbols:

Line Breaks

# Force line break
This is the first line
This is the second line # Horizontal rules *** --- ___

Force line break:

This is the first line
This is the second line

Horizontal rules:




Jupyter Notebook Markdown Tables

Basic Table

| Header1 | Header2 | Header3 |
|---------|---------|---------|
| Row1Col1 | Row1Col2 | Row1Col3 |
| Row2Col1 | Row2Col2 | Row2Col3 |
Header1Header2Header3
Row1Col1Row1Col2Row1Col3
Row2Col1Row2Col2Row2Col3

Aligned Table

| Left Align | Center Align | Right Align |
|:-----------|:------------:|------------:|
| Left       | Center       | Right       |
| Content    | Content      | Content     |
Left AlignCenter AlignRight Align
LeftCenterRight
ContentContentContent

Schnellreferenz Markdown Jupyter Notebook

Texte Gras
**text**
Mettre le texte en gras
Texte Italique
*text*
Emphasiser le texte
Code en Ligne
`code`
Code hervorheben
Math-Formel
$formula$
Mathematischer Inline-Ausdruck
Block-Formel
$$formula$$
Mathematische Block-Formel
Bloc de Code
```python code ```
Mehrzeilige Code-Anzeige
Lien
[text](URL)
Hyperlink erstellen
Image
![alt](imageURL)
Bild einfuegen
Ueberschrift
## Header
Abschnittsueberschrift erstellen
Liste
- item
Element einer ungeordneten Liste
Tableau
| Col1 | Col2 | |-----|-----|
Tabellenstruktur erstellen
Warnhinweis
```{note} content ```
MyST-Warnhinweisfeld

Haeufig Gestellte Fragen (FAQ)

Jupyter Notebook Markdown Cheat Sheet Reference Guide

Jupyter Notebook Markdown syntax overview

Wie zeigt man mathematische Formeln in Jupyter an?

Verwenden Sie die LaTeX-Syntax mit Inline-Formeln in $...$ und Block-Formeln in $$...$$. Jupyter rendert mathematische Formeln automatisch mit MathJax.

Warum wird meine Tabelle nicht korrekt angezeigt?

Stellen Sie sicher, dass das Tabellenformat korrekt ist: Jede Zeile muss die gleiche Anzahl an Spalten haben, und es muss eine Trennzeile (|---|---|---) zwischen Kopfzeilen und Datenzeilen geben.

Wie fuegt man Code-Bloecke in Markdown ein?

Verwenden Sie drei Backticks ``` zum Umschliessen des Codes. Sie koennen eine Sprache fuer die Syntaxhervorhebung angeben, z. B. ```python.

Was ist der Unterschied zwischen MyST Markdown und Standard-Markdown?

MyST Markdown ist eine Erweiterung von Markdown, die zusaetzliche Funktionen wie Querverweise, Warnhinweise, Direktiven usw. unterstuetzt und hauptsaechlich fuer technische Dokumentation und wissenschaftliche Publikationen verwendet wird.

+ 01Verwandte Werkzeuge

Vielleicht auch interessant.