Closed yefeiyu closed 4 years ago
Fortunately, you are using emacs 27.0.50, which makes user-level mailcap config easier.
Add the line
image/*; eog %s
to $HOME/.mailcap
. Or if you don't have eog
, try display
or whatever OSX's no-frills image viewer is. For emacs25 and emacs26, refer to FAQ.
Fortunately, you are using emacs 27.0.50, which makes user-level mailcap config easier.
Add the line
image/*; eog %s
to
$HOME/.mailcap
. Or if you don't haveeog
, trydisplay
or whatever OSX's no-frills image viewer is. For emacs25 and emacs26, refer to FAQ.
thank you for your reply.
But I didn't use Linux, I am use Mac, so I can't find eog
.
and, why there had a file with name .mailcap
?
I had deleted entire folder of .emacs.d
and .emacs
, rebuild emacs with only one elpa of ein
, but it is still remain the error of ........mailcap
.
I found the file filled with win-files exe
lines....
image/*; eog %s
x-content/win32-software; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-exe::install" '%s'; \
description="CrossOver (Install)"; \
test=test -n "$DISPLAY"
application/x-crossover-exe; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-exe::install" '%s'; \
description="CrossOver (Install)"; \
test=test -n "$DISPLAY"
application/x-crossover-lnk; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-lnk::run" '%s'; \
description="CrossOver (Run)"; \
test=test -n "$DISPLAY"
application/x-ms-shortcut; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-lnk::run" '%s'; \
description="CrossOver (Run)"; \
test=test -n "$DISPLAY"
application/x-win-lnk; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-lnk::run" '%s'; \
description="CrossOver (Run)"; \
test=test -n "$DISPLAY"
application/x-crossover-msi; "/Users/charlesthomas/Library/Application Support/CrossOver/desktopdata/CrossOver-0/cxassoc/Scripts/CrossOver-0:application_x-crossover-msi::install" '%s'; \
description="CrossOver (Install)"; \
test=test -n "$DISPLAY"
I resolved this problem by turn the customize-group
-ein
-image
on.
Thanks dickmao for your help very much !
I love EIN! It's so great!
Your mailcap looks reasonable. Maybe replace eog %s
with /usr/bin/qlmanage -p %s
.
I used to think having images inlined was nice, but I now much prefer displaying them externally. Images, especially big ones, just get in the way of coding/thinking.
Hi, I am on Windows 10 and getting this error. Was not able to find the customize-group-ein-image command, where should I look for it? Is there any other fix? Thank you!
If you go to customize-group -> ein, search for 'image', it will be listed as Ein:Output Area Inlined Images. Toggling this on worked for me
@kindinn answer worked for me. For newbies like me: enter customize-group
after you press M
-x
Problem description
The ein-2020***.el can't show figure such as
plt.show()
,ordisplay(HTML(tabulate.tabulate(df, tablefmt='html')))
' s table.Steps to reproduce the problem
System info: