ImportError: cannot import name category_sample

asked 2014-01-27 19:19:49 -0600

cjsh gravatar image

from sage.categories.category import category_sample sorted(category_sample(), key=str)

the samples is .example()? some categories like Semigroups().example(), groups().example() can run normal.....

edit retag flag offensive close merge delete


sage: from sage.categories.category import category_sample sage: sorted(category_sample(), key=str) works well for me. If you do not privide us details about the way you use sage (which version, which OS, which architecture, link to a worksheet on a public notebook,...), we will not be able to help.

tmonteil gravatar imagetmonteil ( 2014-01-27 21:44:11 -0600 )edit

I believe this user mostly uses Sage notebook servers various places. Probably with several different versions installed.

kcrisman gravatar imagekcrisman ( 2014-01-28 06:38:23 -0600 )edit

thank both very much! I try sagecell,it is OK!I will learn to use sagecell

cjsh gravatar imagecjsh ( 2014-01-29 17:46:19 -0600 )edit