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

User logs are not sent to the console #4182

Open
seeM opened this issue Jul 30, 2024 · 1 comment
Open

User logs are not sent to the console #4182

seeM opened this issue Jul 30, 2024 · 1 comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: python support

Comments

@seeM
Copy link
Contributor

seeM commented Jul 30, 2024

Originally posted by @ChadGoymer in #4169

Is anyone having trouble displaying Python logging in the console? The code below should print messages (for warnings and above as that is the default level for the logging module). However, I do not see any output:

image

Contrast this with the same code, run on the same Python interpreter, in VS Code:

image

Is there something I am missing in Positron?

Originally posted by @ChadGoymer in #4169

@seeM seeM added bug Something isn't working lang: python support area: kernels Issues related to Jupyter kernels and LSP servers labels Jul 30, 2024
@seeM
Copy link
Contributor Author

seeM commented Jul 30, 2024

We'll need to figure out how to configure logging so that Positron logs are separate to user logs, and so that logging behaves like the IPython or Python REPLs by default.

Since IPython already seems to handle this fine, and our kernel, shell, etc, are subclasses, we should be able to learn from how they're handling it.

@juliasilge juliasilge added this to the Release Candidate milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: python support
Projects
None yet
Development

No branches or pull requests

2 participants