You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following traceback in a jupyter console session with the itermplot==0.5 version recommended in the readme. Using pip install --upgrade itermplot to version 0.331 also does not help.
In [1]: fig, ax=plt.subplots()
...: fig.show()
---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
InputIn [1], in<module>1fig, ax=pplt.subplot()
---->2fig.show()
File~/miniconda3/lib/python3.9/site-packages/matplotlib/figure.py:2364, inFigure.show(self, warn)
2360raiseAttributeError(
2361"Figure.show works only for figures managed by pyplot, "2362"normally created by pyplot.figure()")
2363try:
->2364self.canvas.manager.show()
2365exceptNonGuiExceptionasexc:
2366ifwarn:
File~/miniconda3/lib/python3.9/site-packages/itermplot/__init__.py:298, inItermplotFigureManager.show(self)
295data=self.animate(loops, outfile)
297ifhasattr(data, "getbuffer"):
-->298imgcat(data.getbuffer(), fn)
299else: # Python 2300imgcat(data.getvalue(), fn)
File~/miniconda3/lib/python3.9/site-packages/itermplot/__init__.py:124, inimgcat(data, fn)
122sys.stdout.buffer.write(buf)
123else:
-->124sys.stdout.write(buf)
125sys.stdout.flush()
127print()
File~/miniconda3/lib/python3.9/site-packages/ipykernel/iostream.py:513, inOutStream.write(self, string)
503"""Write to current stream after encoding if necessary 504 505 Returns (...) 509 510 """512ifnotisinstance(string, str):
-->513raiseTypeError(
514f"write() argument must be str, not {type(string)}"515 )
517ifself.echoisnotNone:
518try:
TypeError: write() argumentmustbestr, not<class'bytes'>
The text was updated successfully, but these errors were encountered:
I get the following traceback in a
jupyter console
session with theitermplot==0.5
version recommended in the readme. Usingpip install --upgrade itermplot
to version 0.331 also does not help.The text was updated successfully, but these errors were encountered: