ImportError: cannot import name category_sample
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.....
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.
I believe this user mostly uses Sage notebook servers various places. Probably with several different versions installed.
thank both very much! I try sagecell,it is OK!I will learn to use sagecell