This sounds like more an issue with Tensorflow when working in notebook 
environment in general.

Would you please open a JIRA. Also feel free to open an issue on Tensorflow as 
well.


________________________________
From: Sriram Narayanamoorthy <nsrira...@gmail.com>
Sent: Tuesday, March 14, 2017 7:28:12 AM
To: users@zeppelin.apache.org
Subject: Tensorflow not working in Zeppelin 0.7.0

Hi all,

There seems to be some issue using Tensorflow in Zeppelin 0.7.0 and it throws 
this error:
NameError: name '_interactive' is not defined

Another user reported the same 
issue<http://stackoverflow.com/questions/42757433/tensorflow-can-not-work-with-zeppelin>
 on SO. 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.

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

Any thoughts why? I am using Zeppelin on Windows.

Best,
-Sriram

--
Sriram Narayanamoorthy

Reply via email to