Is there a way to get tensorflow tf.Print output to appear in Jupyter Notebook output
问题 I'm using the tf.Print op in a Jupyter notebook. It works as required, but will only print the output to the console, without printing in the notebook. Is there any way to get around this? An example would be the following (in a notebook): import tensorflow as tf a = tf.constant(1.0) a = tf.Print(a, [a], 'hi') sess = tf.Session() a.eval(session=sess) That code will print 'hi[1]' in the console, but nothing in the notebook. 回答1: Update Feb 3, 2017 I've wrapped this into memory_util package.