ob-ipython
ob-ipython copied to clipboard
emacs hangs when the output to ob-ipython-stdout is too long?
Hi,
If x is too large in the code below, my emacs session hangs:
#+BEGIN_SRC ipython :export none
x=30000
for i in range(0,x):
print('This is a generic sentence')
#+END_SRC
I am using IPython 4.0 and python 2.7.10. Has anyone else encountered this issue?
Can you binary search for the number that causes it to hang? I suspect that it's just taking a long time to deal with the volume of output rather than actually locking up. Emacs isn't exactly performant when it comes to things like this.
Hi. I'm finding that there isn't a hard cutoff. For some values of x, the code block sometimes executes properly and sometimes does not. For example, at x=17200 or x=17300, I'm finding the code either returns the output instantaneously or hangs indefinitely (I waited for more than 10 minutes in one case).
On Sat, Jun 4, 2016 at 5:32 AM, Greg Sexton [email protected] wrote:
Can you binary search for the number that causes it to hang? I suspect that it's just taking a long time to deal with the volume of output rather than actually locking up. Emacs isn't exactly performant when it comes to things like this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gregsexton/ob-ipython/issues/66#issuecomment-223746375, or mute the thread https://github.com/notifications/unsubscribe/APsWkH4qSEwMzb02p7hSm6n2RechoSwoks5qIUYQgaJpZM4IpaGe .