Typed List causes IPython console to hang when gets printed
See original GitHub issueReporting a bug
- I have tried using the latest released version of Numba (most recent is visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
- I have included below a minimal working reproducer (if you are unsure how to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).
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:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.@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.