Skip to content

Remove line numbers from !eval command output. #1697

@lxnn

Description

@lxnn

In some cases they can make the output appear quite ugly. For example, here is the result of a command I ran yesterday (this is a printed Numpy array):

001 | [0.35319467 0.03863742 0.08606454 0.08990213 0.71744555 0.43287303
002 |  0.90408936 0.13358966 0.10614465 2.138059  ]

Once you introduce line-wrapping, it can end up looking like this:

001 | [0.35319467 0.03863742 0.08606454 0.08990213 0.71744555
0.43287303
002 |  0.90408936 0.13358966 0.10614465 2.138059  ]

As the output is limited to 10 lines, they aren't particularly useful -- I've not seen anyone make reference to the nth line of output. Also, as they are rendered in ascii, people sometimes mistakenly believe they are part of the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: utilityRelated to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils)good first issueGood for newcomersp: 3 - lowLow Prioritys: planningDiscussing detailst: enhancementChanges or improvements to existing features

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions