-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
[feature] Inline graphics in sage-shell-mode #5
Comments
Thanks for posting this issue. |
Indeed. I've recently started using it, and I much appreciate it. In fact, that's what inspired me to open this issue. |
I second the original idea, and add that displaying a ( You could do that by comparing the output to be displayed with You might also force That's (approximately) what did the late |
@EmmanuelCharpentier, unfortunately, I don't enough time for implementing it this month. I will implement it in a few month. By the way, ob-sagemath is also similar to Sage's notebook and might be useful. |
@PythonNut, @EmmanuelCharpentier, I just added this feature. You can enable |
On 23/12/2016 09:38, Sho Takemori wrote:
@PythonNut <https://github.com/PythonNut>, @EmmanuelCharpentier
<https://github.com/EmmanuelCharpentier>, I just added this feature.
Nice stockings filler ! Thank you *very* *much* Now, I can work
efficiently on both research and report without the notebook (which is
nice for research, but not for maintaining a complicated text...).
Note that, at first start (i. e. immediately after updating the
package), emacs gave me the Sage banner, but I never got a Sage prompt,
and emacs was quite unresponsive. Things went better after killing emacs
and its subprocesses (via console) and restarting (from console again).
You
can enable |sage-shell-view| minor mode by |(add-hook
'sage-shell-after-prompt-hook #'sage-shell-view)|.
I think that this would be a nice addition to the "Sage" menu ogf the
*Sage* buffer.
If possible in your implementation (the code in sage-shell-view.el is
not clear about it), the ability to toggle separately plot output and
LaTeX output (i. e. two menu entries) would be even nicer (different use
cases : I use LaTeX output quite often, but plot output in a separate
window is not much of a chore).
I also suggest to advertize the existence of the "Sage Shell View"
customization group, ad possibly to document what can and cannot be
customized (e. g. scale for latex output) somewhere in the REAME.md of
the Github page.
Sorry for taking a
long time.
Don't be sorry ! *We* are *extremely* glad of this addition, and
grateful for the time and care you gave it. The result was worth waiting...
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHljTBfHRXhB5EQllFe26NfyvI4JVLutks5rK4h4gaJpZM4HsHwc>.
|
@EmmanuelCharpentier, thank you very much for the feedback.
I think it would be better to restart Emacs when upgrading any elisp package.
Yes, it is possible. To enable only LaTeX output, please set
I also added commands
I updated sage-shell-view section of README.org. The variable By the way, when inline typesetting enabled, a blank line is inserted before each output. I guess it is due to a bug of Sage 7.4 and should be fixed. |
Since this issue is still open (while almost perfectly fixed, IMHO, modulo an extra blank line...), I'll use it to warn you that I updated the Sage Wiki Sage mode comparison page, to advertise the recent changes (inline typesetting, inline plots, blocks). I also mentioned the AUCTeX integration as "customizable". I have some half-cooked ideas about that, but I need to think more about them... The extra blank line : why do you think it is a Sage bug ? What is the problem ? The Sage Again, thank you very much ! |
@EmmanuelCharpentier, thank you very much for updating the wiki (I always forget updating it) and I look forward to your idea about AUCTeX.
I have just noticed that if When
So the output always contains a newline. In the latest commit, I removed the newline character from the output. By the way, I close this issue since porting |
It would be really cool if
sage-shell-mode
could display graphics inline, like the officialsage-mode
does. I'm not sure how difficult this would be to implement, but clearly it is possible. :)The text was updated successfully, but these errors were encountered: