Print_Rows not working under Notebook?

User 512 | 1/19/2015, 11:58:35 PM

I try to print more rows under IPython Notebook, but there are no results back after using the "print_rows" command, while this command works find under basic Python environment. Do I miss anything?

Comments

User 15 | 1/20/2015, 7:37:39 PM

This appears to work for me. Can you think of a difference between what you're doing and what you see in the picture? Do you have the latest GraphLab Create?

<img src="http://cdn.vanillaforums.com/graphlab.vanillaforums.com/editor/sr/mrfpxre1pgfh.jpg" alt="" />


User 512 | 1/20/2015, 9:14:56 PM

Interesting. I have the latest GraphLab version, and there is no output from the print_rows:

<img src="http://cdn.vanillaforums.com/graphlab.vanillaforums.com/editor/zc/vvcs0mibnprb.png" alt="" />


User 15 | 1/22/2015, 11:36:09 PM

That's pretty weird. Can you print anything at all? Just enter 'print "Hello World!"' in one of the cells. gl.version above does not use the python print command, but sf.print_rows() does.

In the interest of being thorough, what is your version of IPython Notebook and your browser?

Evan


User 512 | 1/24/2015, 12:13:55 AM

It seems that these lines in my Python code caused the problem:

import sys reload(sys) sys.setdefaultencoding('utf-8')

If I remove them, my Notebook is able to print the rows, but I am not sure why ...


User 512 | 1/24/2015, 12:14:52 AM

BTW, I use the latest version of IPython Notebook, and my browser is Firefox (also updated to the latest version). The program is running on Ubuntu 14.


User 15 | 1/24/2015, 5:21:07 PM

Crazy! I guess I'll look in to why that would cause that.