Skip to content

Support PrettyTables 3 in sample display - #107

Open
GiggleLiu wants to merge 1 commit into
mainfrom
automanage/pretty-tables-3
Open

GiggleLiu wants to merge 1 commit into
mainfrom
automanage/pretty-tables-3

Conversation

@GiggleLiu

@GiggleLiu GiggleLiu commented Sep 8, 2026

Copy link
Copy Markdown
Member

PrettyTables 3 renamed the table-header keyword from header to column_labels, so widening the existing compat bound alone makes show(::Samples) fail with a MethodError. Select the keyword from the loaded PrettyTables major version and retain PrettyTables 2 support.

The new display test checks the observable sample type, labels, and values. Focused test/sampling.jl runs pass with both PrettyTables 2.4.0 and 3.4.8 on Julia 1.12.4 after rebasing onto the merged sampling and MMAP changes. Each run passes the 5 display assertions, 2 probabilistic-model sampling checks, the MPS sampling check, and the rescaled-array sampling check.

Dependency ordering blocker: registered ProblemReductions 0.3.5 still restricts PrettyTables to version 2, so a registry-only environment cannot currently select PrettyTables 3 with TensorInference. This PR must wait for a ProblemReductions release containing its already-merged PrettyTables 2/3 compatibility update; current CI resolves PrettyTables 2 and does not clear that blocker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant