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

[BEAM-8335] Display rather than logging when is_in_notebook. #11032

Merged
merged 3 commits into from
Mar 6, 2020

Conversation

nika-91
Copy link
Contributor

@nika-91 nika-91 commented Mar 3, 2020

  1. Added an IPythonLogHandler to display logs as styled HTMLs to
    frontends connected to current IPython kernel. The implementation
    works with all IPython notebooks.
  2. The user can control the logging with native Python logging APIs.
  3. The log handler is only registered when current environment is in a
    notebook and it only affects module loggers under interactive
    package.
  4. The log handler is added to a dummy interactive "root" logger and
    doesn't change any real logger's default configuration.

Change-Id: Iaec9272e0ee61d091979822680615791f1a57cd6

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

1. Added an IPythonLogHandler to display logs as styled HTMLs to
   frontends connected to current IPython kernel. The implementation
   works with all IPython notebooks.
2. The user can control the logging with native Python logging APIs.
3. The log hanlder is only registered when current environment is in a
   notebook and it only affects module loggers under interactive
   package.

Change-Id: Iaec9272e0ee61d091979822680615791f1a57cd6
@nika-91
Copy link
Contributor Author

nika-91 commented Mar 3, 2020

R: @rohdesamuel

PTAL

@nika-91
Copy link
Contributor Author

nika-91 commented Mar 4, 2020

R: @pabloem

Thanks!

@pabloem
Copy link
Member

pabloem commented Mar 4, 2020

retest this please

Change-Id: Iaab96e178f1ee286cb064d88563459503e60ec9d
@pabloem
Copy link
Member

pabloem commented Mar 5, 2020

retest this please

1 similar comment
@pabloem
Copy link
Member

pabloem commented Mar 5, 2020

retest this please

Change-Id: I29aa356a5310de42f43d6610081f2378ea16db9d
@pabloem
Copy link
Member

pabloem commented Mar 5, 2020

retest this please

1 similar comment
@pabloem
Copy link
Member

pabloem commented Mar 5, 2020

retest this please

@pabloem
Copy link
Member

pabloem commented Mar 5, 2020

Run Python PreCommit

@pabloem
Copy link
Member

pabloem commented Mar 6, 2020

Run PythonFormatter PreCommit

@pabloem
Copy link
Member

pabloem commented Mar 6, 2020

Run Portable_Python PreCommit

1 similar comment
@pabloem
Copy link
Member

pabloem commented Mar 6, 2020

Run Portable_Python PreCommit

@pabloem
Copy link
Member

pabloem commented Mar 6, 2020

Run PythonFormatter PreCommit

@pabloem pabloem merged commit 457d4dc into apache:master Mar 6, 2020
@pabloem
Copy link
Member

pabloem commented Mar 6, 2020

thanks Ning!

@nika-91 nika-91 deleted the BEAM-7926-log-handler branch March 20, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants