Skip to content

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

Merged
andygrove merged 2 commits into
apache:mainfrom
simicd:fix/show-method
Mar 22, 2023
Merged

fix: Printed results not visible in debugger & notebooks#296
andygrove merged 2 commits into
apache:mainfrom
simicd:fix/show-method

Conversation

@simicd
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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