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

Logging handler to send python logging to the jupyter log console? #9578

Open
darikg opened this issue Jan 8, 2021 · 2 comments
Open

Logging handler to send python logging to the jupyter log console? #9578

darikg opened this issue Jan 8, 2021 · 2 comments
Labels
enhancement tag:Extension Idea Ideas for interesting extensions that live outside of JupyterLab core.
Milestone

Comments

@darikg
Copy link

darikg commented Jan 8, 2021

Jupyter has a log console for viewing log messages, but my understanding is that this is just for javascript logging. Is there a way to redirect standard python logging module messages to this console? I think it'd be more convenient than printing to stdout.

@jasongrout
Copy link
Contributor

Is there a way to redirect standard python logging module messages to this console? I think it'd be more convenient than printing to stdout.

Not currently, but sounds like an interesting extension someone could write. It would have to somehow integrate on the kernel side with the logging system.

@jasongrout jasongrout added the tag:Extension Idea Ideas for interesting extensions that live outside of JupyterLab core. label Jan 8, 2021
@jasongrout jasongrout added this to the Reference milestone Jan 8, 2021
@krassowski
Copy link
Member

It might greatly help users who experience problems due to the server-side issues; some users do not instinctively check the terminal messages, while others may not have access to those at all (thinking about end-users in JupyterHub/Google Colab-style deployments, or running as a desktop app started from a desktop shortcut). I think that having an option to redirect the server logs to frontend might be very useful for debugging in such settings. There is however a potential security consideration, so it might be best as an opt-in extension indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement tag:Extension Idea Ideas for interesting extensions that live outside of JupyterLab core.
Projects
None yet
Development

No branches or pull requests

3 participants