simicd commented on issue #291:
URL:
https://github.com/apache/arrow-datafusion-python/issues/291#issuecomment-1477059926
Hi @djouallah, thanks for reporting the issue and the feedback! I tried to
reproduce the problem. When debugging in e.g. VS Code and run `ctx.sql("SELECT
42").show()` the result is not printed in the debug console but by default in
the terminal. This is due to VS Code's debug settings:
**Debug console**

**Terminal**

I assume you'd like to show terminal outputs in the debug console. If that's
the case you'd need to set the VS Code config to internal console in
`launch.json` as follows:
```
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit:
https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Debug",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "internalConsole",
}
]
}
```
Once that's set both `.show()` will be printed in the same console:

This is assuming that you're using VS Code, chances are that if you're using
another editor you will have similar possibilty to configure the output. Hope
that helps, please feel free to share additional context if this is not what
you were looking for
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]