Text
Composants d'affichage de texte : bpm.write, bpm.markdown, bpm.title, bpm.header, bpm.subheader, bpm.caption, bpm.code, bpm.latex, bpm.badge, bpm.html.
Référence API
| Fonction | BPM |
|---|---|
| write() | bpm.write() |
| markdown() | bpm.markdown() |
| text() | bpm.text() |
| title() | bpm.title() |
| header() | bpm.header() |
| subheader() | bpm.subheader() |
| caption() | bpm.caption() |
| code() | bpm.code() |
| latex() | bpm.latex() |
| badge() | bpm.badge() |
| html() | bpm.html() |
Exemples
import bpm
bpm.title("Mon titre")
bpm.header("Section")
bpm.subheader("Sous-section")
bpm.markdown("Du **gras** et de l'*italique*.")
bpm.write("Texte brut ou objet Python.")
bpm.caption("Légende discrète.")
bpm.code("def hello():\\n print('Hello')", language="python")
bpm.latex(r"e^{i\\pi} + 1 = 0")
bpm.badge("Nouveau", type="info")
Preview live
Voir le catalogue des composants (texte, titre, markdown, code).