Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print reactive expression: TypeError: __str__ returned non-string (type rx) #7573

Open
MarcSkovMadsen opened this issue Dec 26, 2024 · 0 comments

Comments

@MarcSkovMadsen
Copy link
Collaborator

I'm on the latest main branch of param. When trying to print a reactive expression it raises an exception

import param
rx_value = param.rx(10)
print(rx_value)
Traceback (most recent call last):
  File "/home/jovyan/repos/private/param/script.py", line 3, in <module>
    print(rx_value)
TypeError: __str__ returned non-string (type rx)

The workaround is to print rx_value.rx.value instead. But this would be confusing to a lot of users. Please fix.

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

No branches or pull requests

1 participant