From 94e4a76ded1bac3ecdff6e9b388a41fd152ff79a Mon Sep 17 00:00:00 2001 From: Jiya Gupta <141018273+Jiya873@users.noreply.github.com> Date: Tue, 16 Dec 2025 12:55:25 +0530 Subject: [PATCH 1/2] DOC: document progressbar_theme parameter in pm.sample --- pymc/sampling/mcmc.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pymc/sampling/mcmc.py b/pymc/sampling/mcmc.py index de341c68cd..f7735b7e1e 100644 --- a/pymc/sampling/mcmc.py +++ b/pymc/sampling/mcmc.py @@ -546,6 +546,23 @@ def sample( are also displayed. If True, the default is "split+stats" is used. + + progressbar_theme : rich.theme.Theme, optional + Custom theme applied to the Rich Console used for PyMC progress bars. + + Colors and styles must follow Rich's style syntax. Not all common color + names are supported and invalid values may raise a ``StyleSyntaxError``. + + For reference, see the Rich documentation: + - `Rich style syntax `_ + - `Supported color names `_ + + Note + ---- + The progress bar fill color itself is controlled internally by PyMC and + cannot be customized via the theme. The theme affects console styles such + as table headers, elapsed/remaining time. + step : function or iterable of functions A step function or collection of functions. If there are variables without step methods, step methods for those variables will be assigned automatically. By default the NUTS step From 0ec5a79e3dc7805c9da3f4508a64fd6e78ea3a71 Mon Sep 17 00:00:00 2001 From: Jiya Gupta <141018273+Jiya873@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:30:16 +0530 Subject: [PATCH 2/2] DOC: document progressbar_theme parameter in pm.sample --- pymc/sampling/mcmc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pymc/sampling/mcmc.py b/pymc/sampling/mcmc.py index f7735b7e1e..729b8c6a1e 100644 --- a/pymc/sampling/mcmc.py +++ b/pymc/sampling/mcmc.py @@ -549,14 +549,14 @@ def sample( progressbar_theme : rich.theme.Theme, optional Custom theme applied to the Rich Console used for PyMC progress bars. - + Colors and styles must follow Rich's style syntax. Not all common color names are supported and invalid values may raise a ``StyleSyntaxError``. - + For reference, see the Rich documentation: - `Rich style syntax `_ - `Supported color names `_ - + Note ---- The progress bar fill color itself is controlled internally by PyMC and