Skip to content

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Mar 5, 2025

Only model objects will have a default Ipython/Jupyter representation.

This simplifies the codebase and saves half a second of import time.

Before:

import pymc as pm

with pm.Model() as m:
    x = pm.Normal("x")
    a = pm.Deterministic("a", x + 1)
    y = pm.Normal("y", a)

# Before this would print x ~ Nomal(0, 1)
# Now it just prints x (the name)
x
# x
# Still prints the same as before
m
# x ~ Normal(0, 1)
# y ~ Normal(f(x), 1)
# a ~ Deterministic(f(x))

📚 Documentation preview 📚: https://pymc--7712.org.readthedocs.build/en/7712/

@ricardoV94 ricardoV94 added major Include in major changes release notes section model labels Mar 5, 2025
@ricardoV94 ricardoV94 force-pushed the pretty_print_monkeypatch branch from a876977 to ce59552 Compare July 15, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Include in major changes release notes section model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant