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

fix: Printed results not visible in debugger & notebooks #296

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

simicd
Copy link
Contributor

@simicd simicd commented Mar 21, 2023

Which issue does this PR close?

Closes #291

Rationale for this change

Previously printing results (e.g. .show() method or .explain()) used Rust's println! macro. The results would not be visible in VS Code's debug console or in notebooks. Example:

image

What changes are included in this PR?

Use Python's builtin print function to resolve the issue and allow displaying results directly in the debugger & notebooks:

image

Are there any user-facing changes?

.show() and .explain() newly display results

@simicd simicd changed the title fix: Printed fix: Printed results not visible in debugger & notebooks Mar 21, 2023
Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @simicd!

@andygrove andygrove merged commit b70f1c0 into apache:main Mar 22, 2023
@simicd
Copy link
Contributor Author

simicd commented Mar 22, 2023

You're welcome, thanks for the review @andygrove!

@simicd simicd deleted the fix/show-method branch March 23, 2023 22:01
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.

make the method show() print the results
2 participants