Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying NodeCollection is very slow in IPython #3144

Closed
heplesser opened this issue Mar 12, 2024 · 0 comments · Fixed by #3145
Closed

Displaying NodeCollection is very slow in IPython #3144

heplesser opened this issue Mar 12, 2024 · 0 comments · Fixed by #3145
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.

Comments

@heplesser
Copy link
Contributor

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.

@heplesser heplesser added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Mar 12, 2024
@jessica-mitchell jessica-mitchell moved this to Done in PyNEST Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant