Skip to content

Displaying NodeCollection is very slow in IPython #3144

@heplesser

Description

@heplesser

Running the following in IPython

import nest
n = nest.Create('parrot_neuron', positions=nest.spatial.free([(x, 0) for x in range(10000)]))
n

the last line takes extraordinarily long, over 10 seconds, I think. But if one instead does

print(n)

it executes instantaneously.

Also, executing the same code in plain python, the Node collection is displayed immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I: No breaking changePreviously written code will work as before, no one should note anything changing (aside the fix)S: NormalHandle this with default priorityT: MaintenanceWork to keep up the quality of the code and documentation.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions