Closed manics closed 4 years ago
sys.stdout in Jupyter notebooks may not have a buffer attribute.
sys.stdout
buffer
To test: run create_companion(images=[companion]) (i.e. use the default out parameter) in a Jupyter Notebook.
create_companion(images=[companion])
out
See e.g. https://github.com/Yelp/mrjob/pull/1443
For testing you can use nbval, for example https://github.com/IDR/idr-notebooks/blob/master/docker/test_notebooks.sh though note this script isn't yet automatically run in travis on that repo.
sys.stdout
in Jupyter notebooks may not have abuffer
attribute.To test: run
create_companion(images=[companion])
(i.e. use the defaultout
parameter) in a Jupyter Notebook.See e.g. https://github.com/Yelp/mrjob/pull/1443