| name | ipython-unicode |
| description | Explains IPython's LaTeX/Unicode tab-completion feature โ how to type \alpha, \vec, \dot, font families like \bbA, \bfA, \scrA, superscripts, subscripts, Greek letters, and math symbols as valid Python identifiers. Use when the user asks about unicode identifiers, latex symbols, tab completion for symbols, or typing Greek/math characters in IPython. |
IPython Unicode / LaTeX Tab Completion
IPython supports LaTeX-style tab completion: type a \name sequence and press Tab to insert the corresponding Unicode character directly into your code as a valid Python identifier.
How It Works
F\vec<Tab> โ Fโ
v\dot<Tab> โ vฬ
x\hat<Tab> โ xฬ
\alpha<Tab> โ ฮฑ
\mu<Tab> โ ฮผ
The resulting characters are valid Python identifiers โ you can use them as variable names, function parameters, etc.
Combining Accents (place AFTER the variable name)
| LaTeX | Unicode | Usage example |
|---|
\vec | โ | Fโ force vector |
\dot | ฬ | แบ velocity (dx/dt) |
\ddot | ฬ | แบ acceleration |
\dddot | โ | third derivative |
\ddddot | โ | fourth derivative |
\hat | ฬ | xฬ unit vector/estimate |
\bar | ฬ | xฬ mean value |
\tilde | ฬ | xฬ |
\acute | ฬ | xฬ |
\grave | ฬ | xฬ |
\breve | ฬ | xฬ |
\check | ฬ | xฬ |
\overbar | ฬ
| xฬ
|
\underbar | ฬฒ | xฬฒ |
\not | ฬธ | xฬธ (negation overlay) |
\overleftarrow | โ | |
\overleftrightarrow | โก | |
Greek Letters
All standard Greek letters are supported:
Lowercase: \alpha ฮฑ, \beta ฮฒ, \gamma ฮณ, \delta ฮด, \epsilon ฮต, \varepsilon ฮต, \zeta ฮถ, \eta ฮท, \theta ฮธ, \vartheta ฯ, \iota ฮน, \kappa ฮบ, \lambda ฮป, \mu ฮผ, \nu ฮฝ, \xi ฮพ, \pi ฯ, \varpi ฯ, \rho ฯ, \varrho ฯฑ, \sigma ฯ, \varsigma ฯ, \tau ฯ, \upsilon ฯ
, \phi ฯ, \varphi ฯ, \chi ฯ, \psi ฯ, \omega ฯ
Uppercase: \Gamma ฮ, \Delta ฮ, \Theta ฮ, \Lambda ฮ, \Xi ฮ, \Pi ฮ , \Sigma ฮฃ, \Upsilon ฮฅ, \Phi ฮฆ, \Psi ฮจ, \Omega ฮฉ
Superscripts \^ and Subscripts \_
\^a โ แต \^b โ แต โฆ \^z โ แถป (also AโZ and some Greek: \^alpha โ แต
)
\_a โ โ \_e โ โ โฆ \_n โ โ (also Greek: \_beta โ แตฆ, \_rho โ แตจ)
\_0 โ โ \_1 โ โ โฆ \_9 โ โ
Math / Physics Symbols
\hbar โ ฤง \hslash โ โ \planck โ โ \euler โ โฏ
\ell โ โ \wp โ โ \Re โ โ \Im โ โ
\aleph โ โต \beth โ โถ \gimel โ โท \daleth โ โธ
\ohm โ ฮฉ \Angstrom โ ร
Font Family Alphabets (~1000 symbols)
Each covers AโZ and aโz. Type e.g. \bfA<Tab> to get ๐:
| Prefix | Style | Sample |
|---|
\bbA | Blackboard bold | ๐ธ๐นโ๐ป๐ผ |
\bfA | Bold | ๐๐๐๐๐ |
\biA | Bold italic | ๐จ๐ฉ๐ช๐ซ๐ฌ |
\itA | Italic | ๐ด๐ต๐ถ๐ท๐ธ |
\scrA | Script | ๐๐๐โฆ |
\bscrA | Bold script | ๐๐๐๐๐ |
\frakA | Fraktur | ๐๐
โญ๐๐ |
\bfrakA | Bold fraktur | ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ |
\sansA | Sans-serif | ๐ ๐ก๐ข๐ฃ๐ค |
\bsansA | Bold sans | ๐๐๐๐๐ |
\isansA | Italic sans | ๐๐๐๐๐ |
\bisansA | Bold italic sans | ๐ผ๐ฝ๐พ๐ฟ๐ |
\ttA | Typewriter (mono) | ๐ฐ๐ฑ๐ฒ๐ณ๐ด |
Special Latin / IPA
\ss โ ร \ae โ รฆ \AE โ ร \aa โ รฅ \AA โ ร
\OE โ ล \eth โ รฐ \schwa โ ษ \DJ โ ฤ \NG โ ล
Physics / Math Variable Examples
ฮฑ = 0.01
ฮผ, ฯ = 0.0, 1.0
ฮป = 1e-3
ฤง = 1.055e-34
Fโ = [1, 0, 0]
แบ = 5.0
แบ = 9.8
xฬ = sum(data)/len(data)
๐ = np.eye(3)
๐ฝโ = GF(2)
Browsing All Symbols
from IPython.core.latex_symbols import latex_symbols
len(latex_symbols)
{k: v for k, v in latex_symbols.items() if 'arrow' in k}
{k: v for k, v in latex_symbols.items() if k.startswith('\\bb')}