- You should `M-x customize RET` and look for "mailcap mime". - Navigate to "Mailcap User Mime Data". - INS new entry. - Clock in Choice:`Value Menu` and choose Shell command. - type in *Choice Shell command:* sxiv %s - type in *MIME Type:* image/* Save the customization. Now, when jupyter looks for how to visualize an image file it will use `sxiv`. As the procedure we would like to emulate is upon a string-directory, the format is `sxiv %s(tring)`. Just like we would type in a terminal to visualize an image with sxiv, e.g., sxiv ~/path/to/my/image. The path is provided by a temporary file created by jupyter as the output of the cell. I hope it's clear.