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

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

    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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tincman Jonathan Tinkham
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: