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

Tensorflow not working in Zeppelin 0.7.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.7.0
    • None
    • pySpark
    • None

    Description

      When using python kernel in Zeppelin 0.7.0 loading Tensorflow throws an error:
      `NameError: name _interactive is not defined`

      Similar issues are reported in SO http://stackoverflow.com/questions/42757433/tensorflow-can-not-work-with-zeppelin. The fix suggested there seems to be really hacky.

      The issue seems to be that in tf_logging.py file [.\Anaconda3\Lib\site-packages\tensorflow\python\platform\tf_logging.py] the _interactive variable is not triggering for Zeppelin.

      ```

      1. Determine whether we are in an interactive environment
        try:
      2. This is only defined in interactive shells
        if _sys.ps1: _interactive = True
        except AttributeError:
      3. Even now, we may be in an interactive shell with `python -i`.
        _interactive = _sys.flags.interactive
        ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            nsriram13 Sriram Narayanamoorthy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: