Skip to content

ipython_genutils.text.compute_item_matrix to horizontal matrix #14

Description

@Roffild

The ipython_genutils.text.compute_item_matrix() function is used to complete the code. Vertical sorting is inconvenient. I would like to switch the matrix sorting options through the config.

# Horizontal sorting:
    return ([[ _get_or_default(items, i*nrow+c, default=empty) for c in range(ncol) ] for i in range(nrow) ], info)

# Vertical sorting:
    return ([[ _get_or_default(items, c*nrow+i, default=empty) for c in range(ncol) ] for i in range(nrow) ], info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions