Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2885

Python/PySpark: Logger doesn't implement 'isatty()'

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When attempting to use H2O from Zeppelin, paragraphs fail with
      AttributeError: 'Logger' object has no attribute 'isatty', due to Zeppelin using a custom class to capture output and redirect it.

      While adding a stub method to return false is possible (similar to what was done previously for ZEPPELIN-734), I think it would be better to have Logger inherit from a TextIO class and override the write method, increasing compatibility with libraries that use stdout.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            tincman Jonathan Tinkham

            Dates

              Created:
              Updated:

              Slack

                Issue deployment