Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display function could accept filenames as well as stdin #23

Open
crazyhottommy opened this issue Apr 27, 2015 · 5 comments
Open

display function could accept filenames as well as stdin #23

crazyhottommy opened this issue Apr 27, 2015 · 5 comments

Comments

@crazyhottommy
Copy link

Hi, I was following the post here http://jeroenjanssens.com/2015/02/19/ibash-notebook.html

but the display function did not show a picture inline in the notebook.
do you have any ideas of why?

Thanks!
Ming

@takluyver
Copy link
Owner

One that's caught me out before: make sure you're piping data to display - simply calling it with a filename dose not work (currently).

If that's not the problem, no bright ideas.

@crazyhottommy
Copy link
Author

yes, it worked if I do cat my.jpeg | display
but not directly.

Thanks,
Ming

@takluyver takluyver changed the title display function not working on mac display function could accept filenames as well as stdin Apr 27, 2015
@takluyver
Copy link
Owner

Thanks. I've retitled the issue accordingly.

@jhamman
Copy link

jhamman commented Jun 30, 2015

I'm getting a related issue

cat my.jpeg | display

Returns the following errors

bash: /var/folders/wp/vl03tkh17lg8lhlbfftzjh400000gn/T//bash_kernel.ko2xmYMGfG: cannot overwrite existing file
cat: stdout: Broken pipe
Not a valid image: b''

Any thoughts on what is going on here?

@takluyver
Copy link
Owner

display creates a temporary file, writes the image to it and then tells the Python code where that file is. I don't know why the temporary file wouldn't be writable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants