ImportError: cannot import name category_sample

asked 2014-01-28 02:19:49 +0100

cjsh gravatar image

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

http://www.sagemath.org/doc/reference...

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

edit retag flag offensive close merge delete

Comments

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-28 04:44:11 +0100 )edit

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

kcrisman gravatar imagekcrisman ( 2014-01-28 13:38:23 +0100 )edit

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

cjsh gravatar imagecjsh ( 2014-01-30 00:46:19 +0100 )edit