Closed edwinhu closed 7 years ago
hi! i'm getting the same issue.
Thanks for sharing this project @daleroberts !
I'm also getting the same error above when I run @edwinhu's example code in ptpython.
I have the following error when I run in bpython:
Traceback (most recent call last): File "", line 1, in
plt.show() File "/Users/tw/miniconda3/lib/python3.5/site-packages/matplotlib/pyplot.py", line 252, in show return _show(*args, **kw) File "/Users/tw/itermplot/itermplot.py", line 95, in show figmanager.show() File "/Users/tw/itermplot/itermplot.py", line 208, in show imgcat(data.getbuffer()) File "/Users/tw/itermplot/itermplot.py", line 82, in imgcat sys.stdout.buffer.write(buf) AttributeError: 'FakeOutput' object has no attribute 'buffer'
and the code actually works when I run in the basic python terminal, though it'd be great if it worked with other python interpreters as the basic one is pretty limiting. Thanks!
@edwinhu I've fixed the unpack bug by catching the exception and keeping the color "as is" if it can't parse it. Even though I couldn't reproduce the bug in matplotlib 1.5.3 with the code:
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
@Tiffany8 I'm going to look at the strange bpython
bug now...
Thanks for pointing out these bugs :)
I'm seeing this error: