-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
ipython notebook: show compile LaTeX inplace #18116
Comments
Changed keywords from ipython, latex, tikz to ipython, latex, tikz, sd66 |
This comment has been minimized.
This comment has been minimized.
Branch: u/vbraun/pdf_wrapper |
Commit: |
Author: Volker Braun |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
Best wishes Daniel |
comment:7
Launching an external viewer from the notebook server process equals NOT working in my book. So The correct way to get graphical output is The show docstring is correct, it'll show a Graphics object if you provide one. If you don't give it a graphics object then you won't get a picture. |
comment:8
Replying to @vbraun:
On my installations the command
does the following:
|
comment:9
Thats because #17821 will first have to fix show |
Dependencies: #17821 |
Hi Daniel, Replying to @dkrenn:
First, to me the following facts are all completely independent: Second, I have never liked in Sage the fact that there plenty of ways of drawing things. For an outside person, it is tough to understand the difference That being said, I really like the idea of being able to show tikz pictures in the ipython notebook. |
comment:11
Replying to @vbraun:
Ok, then the code should change.
To me it is not clear from the command that this will show a picture. |
comment:12
Replying to @seblabbe:
I agree. |
comment:13
You can't solve the "its impossible to guess the difference between view/show/pretty_print" conundrum without getting rid of 2 of them (or making them aliases, at least). |
comment:14
Also, show acts immediately, like print. Plot does not act immediately, it returns a graphics object that you can use elsewhere and need not result in graphical output. In other words: its the difference between
and
|
comment:15
Replying to @vbraun:
I see; thanks for this clearification. |
comment:16
Replying to @vbraun:
So |
comment:17
Would it be possible to have an arguemtn to |
comment:18
Anyhow, should the discussion about |
comment:19
Making The only real alternative is make latex objects display graphically by default, i.e.
would use the displayhook to show mathjax or pdf. Thats possible, but I think many people use latex to generate latex code to paste into their articles and not to get cute pictures in the notebook. |
comment:20
Replying to @vbraun:
True. (But having something (a function?) similar is/will be very handy.) |
comment:21
Replying to @vbraun:
+1, there should be a method of
Well, they could still do:
|
comment:22
Replying to @seblabbe:
You say that because the objects that you are interested in have a broken |
comment:23
Replying to @vbraun:
|
comment:24
Plot should still return a graphics object. I'm saying that graphics objects should support tikz (next to matplotlib) to draw graph-type graphics objects. Just like 3-d graphcs objects can be rendered in different ways. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:28
This is now ready for review. I'll leave SVG support for later (#18280) |
comment:29
The branch does not apply since sage-6.8.beta3. |
comment:30
There is some kind of solution to the original problem of this ticket at #19515. The original problem was:
shows the transducer inplace in sagenb but it is a pitty that this does not work in the ipython notebook.
writes tikz-code. |
comment:32
Updated... |
comment:33
Merge conflict with 7.4.beta5 |
I also want to discourage the
view()
command, right now it is just spaghetti code that does different things depending on the time of the day. So I propose to uselatex(...).compile()
as an idiom to typeset LaTeX code.See also https://groups.google.com/forum/#!topic/sage-devel/1ozhg8pHXL4
Depends on #17821
Depends on #17942
CC: @paulmasson @JeremiasE
Component: notebook
Keywords: ipython, latex, tikz, sd66
Author: Volker Braun
Branch/Commit: u/vbraun/pdf_wrapper @
17529b3
Issue created by migration from https://trac.sagemath.org/ticket/18116
The text was updated successfully, but these errors were encountered: