How to make a list of all dog breeds with pictures and names
like this
I tried:
EntityValue[
Take[EntityList[EntityClass["DogBreed", All]], 3], "Image"]
but there is an error message
How to make a list of all dog breeds with pictures and names
like this
I tried:
EntityValue[
Take[EntityList[EntityClass["DogBreed", All]], 3], "Image"]
but there is an error message
$Version
(* "10.4.0 for Mac OS X x86 (64-bit) (February 26, 2016)" *)
Grid[
Partition[
Column[#, Alignment -> Center, Frame -> All] & /@
EntityValue[
Take[
EntityList[EntityClass["DogBreed", All]],
9],
{"Name", "Image"}],
3],
Alignment -> Top]
EDIT: To show all, pull a "page" at a time.
imagesPerPage = 15;
total = EntityList[EntityClass["DogBreed", All]] // Length
(* 376 *)
pages = Ceiling[total/imagesPerPage]
(* 26 *)
Table[
Grid[
Partition[
Column[#, Alignment -> Center, Frame -> All] & /@
EntityValue[
Take[
EntityList[EntityClass["DogBreed", All]],
(n - 1)*imagesPerPage + 1 ;; Min[n*imagesPerPage, total]],
{"Name", "Image"}],
3, 3, {1, 1}, ""],
Alignment -> Top],
{n, pages}] // Column