Comments (3)
hi! i'm getting the same issue.
from itermplot.
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!
from itermplot.
@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 :)
from itermplot.
Related Issues (20)
- plotting in nvim terminal mode HOT 4
- Suggestion: set style with env var, and allow turning transparency off HOT 2
- support pyplot.imshow HOT 2
- Run scripts from shell without graph popup window
- Consider adding a license HOT 2
- How to Turn off alternative plots
- Scatter plots with lots of values close to each other are not displayed
- Warning messages re. deprecation of FigureCanvasAgg.print_png kwargs
- Issue with subplots in tmux HOT 2
- TMUX vim slime HOT 2
- Problem with animations in matplotlib >= 3.3
- consider updating in conda-forge
- License missing
- Broken in jupyter console HOT 1
- Don't work on mac m1 HOT 1
- is there any way to change figsize in terminal? HOT 2
- Doesn't work with tmux HOT 2
- Very cool! but Doesn't work on GNU Screen
- Does not work with TMUX
- itermplot's most recent release on pypi is 0.331 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itermplot.