Skip to content

Discard stderr from jupyter shell command #388

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

Closed
wants to merge 1 commit into from

Conversation

indigoviolet
Copy link

In some situations, jupyter kernelspec list --json produces stderr warnings like

[ListKernelSpecs] WARNING | Native kernel (python3) is not available

which leads to a JSON parsing error

This change discards the stderr.

In some situations, `jupyter kernelspec list --json` produces stderr warnings like

```
[ListKernelSpecs] WARNING | Native kernel (python3) is not available
```
which leads to a JSON parsing error

This change discards the stderr.
@nnicandro
Copy link
Collaborator

Thanks for this but I prefer #418. I think discarding stderr completely in jupyter-command is a bit overkill. There may be a case for looking at the stderr messages if they do happen in other calls to jupyter-command. Although there aren't any such cases at the moment.

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.

2 participants