Closed shiso-five closed 2 years ago
Your curation of ~/.mailcap
configures the external viewer, but toggling "on" Ein Output Area Inline Images contradicts this -- "inlining images in the output area" means "show up directly in emacs (don't use an external viewer)".
As for the warning, it sounds as if perhaps your emacs isn't built with basic image libraries. Verify this returns nil.
M-: (image-type-available-p (intern-soft (ein:cell-extract-image-format :image/png)))
OK. I executed M-: (image-type-available-p (intern-soft (ein:cell-extract-image-format :image/png)))
and it returned nil.
Sorry I mistook × toggled "on" -> toggled "off"
The external viewer worked!
brew uninstall emacs
Ein does not show figures when
plt.plot()
orplt.show()
and the warning is shown as this issue title in emacs mini buffer. I toggled "on" at "M-x customize-group RET ein 'Ein Output Area Inline Images'", and wrote ~/.mailcap file as follows.image/*; open -a Preview "%s"
What should I do?
My python code is
My laptop environment is ・macOS Monterey 12.2.1 M1 chip ・emacs --version GNU Emacs 27.2