question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typed List causes IPython console to hang when gets printed

See original GitHub issue

Reporting a bug

All elements of numba’s typed List get printed to IPython console, causing it to crash if the list is long. This doesn’t happen with Python’s native lists, as they get shortened when printed.

In [1]: x = [1] * 1_000_000
In [2]: y = numba.typed.List(x)
In [3]: y

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
stuartarchibaldcommented, Oct 30, 2020

@ma-sadeghi thanks for confirming, I think you are just experiencing the effect of buffering a large amount of output. I think this should be reasonable to fix, just by restricting the amount of printing done for the List type.

0reactions
ma-sadeghicommented, Dec 13, 2020

@stuartarchibald @caljrobe @esc I was a bit swamped, so couldn’t get back to this issue promptly, sorry about that. I just opened up a PR that addresses this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Print into console terminal not into cell output of IPython ...
Type the above code in an IPython cell and evaluate it. Afterwards all output will show up in terminal. Share.
Read more >
iPython console gets totally unresponsive when using large ...
PY-44638 Python Console hangs when DataFrame has a dtype column ... Whenever I create a large (~1.5x10^6 rows, with large text data column,...
Read more >
Jupyter Notebook is not showing the output of any code ...
Hello, I am new to python. When I use Jupyter Notebook the code inside the cells won't execute and I get these empty...
Read more >
IPython reference — IPython 3.2.1 documentation
# Try running this code both at the command line and from inside IPython (with # %run example-embed.py) from IPython. config. loader import...
Read more >
Common Illnesses — Spyder 5 documentation
There are a number of problems that can cause this, but most can be fixed fairly quickly with a few easy steps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found