[sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-10 Thread Henri Girard
+1 circuitikz in jupiter

Le jeudi 2 avril 2015 21:52:08 UTC+2, Daniel Krenn a écrit :
>
> The command 
>   view(transducers.GrayCode()) 
> produces tikz-output which can be show by latex. In sagenb this was 
> shown directly inside the notebook, while in the ipython-notebook this 
> opens a new pdf with the picture. 
>
> It would be nice to have this shown in the ipynb... 
>
> Comments? Guesses when this will be possible? Trac-Ticket? 
>
> Best wishes, 
>
> Daniel 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-08 Thread Samuel Lelievre
Please everyone write Jupyter with "y" when talking
about Project Jupyter and the Jupyter Notebook.

Read "Where does the name come from" at:
https://github.com/jupyter/design/wiki/Jupyter-Logo#where-does-the-name-come-from

: )

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-05 Thread Daniel Krenn
On 2015-11-03 12:50, Jean-Baptiste Priez wrote:
> Hello tikz lovers!!
> 
> I create a(nother) ticket to use tikz picture with jupiter
> (http://trac.sagemath.org/ticket/19515
> ).

+1 for making this work in jupiter

> (I don't understand the reason of the ticket  #18116 and it doesn't work
> on my sage 6.9... )

FYI, this was the original description of #18116 and motivation for
opening this ticket:

{{{
view(latex(transducers.GrayCode()))
}}}
shows the transducer inplace in sagenb but it is a pitty that this does
not work in the ipython notebook.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-04 Thread Dima Pasechnik


On Wednesday, 4 November 2015 08:27:51 UTC, Jean-Baptiste Priez wrote:
>
> Thanks William.
>
> For what it's worth,
>>
>> view(transducers.GrayCode()) and show(transducers.GrayCode())
>>
>> just work also in SageMathCloud -- example:
>>
>>   
>> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-11-03-212108-tikz.sagews
>>  
>> 
>>
>> I finally added tikz support a few days ago:
>>
>>   
>> https://github.com/sagemathinc/smc/commit/ef7ff54508e5544a42628db48d9936f66c86cd92
>>  
>> 
>>
>
> But I am not sure to understand. You develop the functionality for 
> sagemathcloud (which use jupyter, no?) but you don't provide the fix for 
> the current ipython/jupyter notebook?
>
>
IMHO  it is about Sagecloud worksheets, which have little in common with 
 jupiter notebook worksheets.


Jean-Baptiste
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-04 Thread Jean-Baptiste Priez
Thanks William.

For what it's worth,
>
> view(transducers.GrayCode()) and show(transducers.GrayCode())
>
> just work also in SageMathCloud -- example:
>
>   
> https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-11-03-212108-tikz.sagews
>
> I finally added tikz support a few days ago:
>
>   
> https://github.com/sagemathinc/smc/commit/ef7ff54508e5544a42628db48d9936f66c86cd92
>  
> 
>

But I am not sure to understand. You develop the functionality for 
sagemathcloud (which use jupyter, no?) but you don't provide the fix for 
the current ipython/jupyter notebook?

Jean-Baptiste

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-03 Thread William Stein
On Tue, Nov 3, 2015 at 9:50 AM, Jean-Baptiste Priez 
wrote:

> Hello tikz lovers!!
>
> I create a(nother) ticket to use tikz picture with jupiter (
> http://trac.sagemath.org/ticket/19515).
> (I don't understand the reason of the ticket  #18116 and it doesn't work
> on my sage 6.9... )
>
>
For what it's worth,

view(transducers.GrayCode()) and show(transducers.GrayCode())

just work also in SageMathCloud -- example:


https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2015-11-03-212108-tikz.sagews

I finally added tikz support a few days ago:


https://github.com/sagemathinc/smc/commit/ef7ff54508e5544a42628db48d9936f66c86cd92


> Le samedi 11 avril 2015 08:33:32 UTC+2, jplab a écrit :
>>
>> Hi!
>>
>> I just want to say that this is a very nice feature!!
>>
>> Jean-Philippe
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-11-03 Thread Jean-Baptiste Priez
Hello tikz lovers!!

I create a(nother) ticket to use tikz picture with jupiter (
http://trac.sagemath.org/ticket/19515).
(I don't understand the reason of the ticket  #18116 and it doesn't work on 
my sage 6.9... )

Le samedi 11 avril 2015 08:33:32 UTC+2, jplab a écrit :
>
> Hi!
>
> I just want to say that this is a very nice feature!!
>
> Jean-Philippe
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-10 Thread jplab
Hi!

I just want to say that this is a very nice feature!!

Jean-Philippe

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-07 Thread Viviane Pons
2015-04-07 12:13 GMT-04:00 Volker Braun :

> No, I'm saying its nice functionality but attached at the wrong place. If
> you can't use .plot() to generate the graphics the how on earth is a new
> user supposed to discover that functionality? Its just a terrible UI.
>

You're right about that! I guess the solution with an optional parameter in
the plot function to use the latex instead of default plot would be good.
But does view and plot return the same kind of object? I don't think so...
That might be a problem!





>
>
> On Tuesday, April 7, 2015 at 4:30:58 PM UTC+2, Viviane Pons wrote:
>>
>>
>>
>> 2015-04-03 4:05 GMT-04:00 Volker Braun :
>>
>>> On Friday, April 3, 2015 at 9:56:40 AM UTC+2, Daniel Krenn wrote:

 Actually, it is a short for
   view(latex(transducers.GrayCode()))
>>>
>>>
>>> I know. And who cares? The important point is to present a uniform user
>>> interface for generating graphical output. The _latex_ method of
>>>  transducers.GrayCode() re-implements plotting, just in a less flexible way.
>>>
>>
>> I'm not sure of what's your point here. Are you saying that the _latex_
>> method is somehow useless? Because I strongly disagree with that. I use
>> this method a lot for a bunch of objects, and to generate the latex code
>> that then goes into my articles. It is true that it is less flexible than
>> the plot method, so I guess it is just used in different contexts...
>>
>>
>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-devel" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-devel+...@googlegroups.com.
>>> To post to this group, send email to sage-...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/sage-devel.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-07 Thread Volker Braun
No, I'm saying its nice functionality but attached at the wrong place. If 
you can't use .plot() to generate the graphics the how on earth is a new 
user supposed to discover that functionality? Its just a terrible UI.


On Tuesday, April 7, 2015 at 4:30:58 PM UTC+2, Viviane Pons wrote:
>
>
>
> 2015-04-03 4:05 GMT-04:00 Volker Braun >:
>
>> On Friday, April 3, 2015 at 9:56:40 AM UTC+2, Daniel Krenn wrote:
>>>
>>> Actually, it is a short for 
>>>   view(latex(transducers.GrayCode())) 
>>
>>  
>> I know. And who cares? The important point is to present a uniform user 
>> interface for generating graphical output. The _latex_ method of 
>>  transducers.GrayCode() re-implements plotting, just in a less flexible way.
>>
>
> I'm not sure of what's your point here. Are you saying that the _latex_ 
> method is somehow useless? Because I strongly disagree with that. I use 
> this method a lot for a bunch of objects, and to generate the latex code 
> that then goes into my articles. It is true that it is less flexible than 
> the plot method, so I guess it is just used in different contexts... 
>
>  
>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com .
>> To post to this group, send email to sage-...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-07 Thread Viviane Pons
2015-04-03 4:05 GMT-04:00 Volker Braun :

> On Friday, April 3, 2015 at 9:56:40 AM UTC+2, Daniel Krenn wrote:
>>
>> Actually, it is a short for
>>   view(latex(transducers.GrayCode()))
>
>
> I know. And who cares? The important point is to present a uniform user
> interface for generating graphical output. The _latex_ method of
>  transducers.GrayCode() re-implements plotting, just in a less flexible way.
>

I'm not sure of what's your point here. Are you saying that the _latex_
method is somehow useless? Because I strongly disagree with that. I use
this method a lot for a bunch of objects, and to generate the latex code
that then goes into my articles. It is true that it is less flexible than
the plot method, so I guess it is just used in different contexts...



>  --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-03 Thread Volker Braun
On Friday, April 3, 2015 at 9:56:40 AM UTC+2, Daniel Krenn wrote:
>
> Actually, it is a short for 
>   view(latex(transducers.GrayCode())) 

 
I know. And who cares? The important point is to present a uniform user 
interface for generating graphical output. The _latex_ method of 
 transducers.GrayCode() re-implements plotting, just in a less flexible way.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-03 Thread Daniel Krenn
Am 2015-04-03 um 01:27 schrieb Volker Braun:
> I didn't even know that that was possible, yet another way to plot stuff
> that is not accessible via plot()...
> 
> There is no ticket for refactoring view() into something consistent
> except for the awfully vague #18033. IMHO the finite state machines
> should go with the program and

Actually, it is a short for

  view(latex(transducers.GrayCode()))

also works with

  view(latex(transducers.GrayCode()))

So it is the LaTeX output (which is a TikZ-picture) which I want to show.
IMHO...showing any latex-output should work as in the sagenb (i.e. inplace)

> * Have plot() produce a Graphics object that contains all of the desired
> output

This works for the transducers, but gives a different represetnation
(using graphs). The nicly formatted output comes from latex(...)

> * There should be a plot(format='tikz'), or maybe plot(viewer='tikz')
> etc, that produces tikz+latex from the Graphics object. 

Ok.

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


[sage-devel] Re: ipython-notebook: show picture in notebook (e.g. latex-tikz)

2015-04-02 Thread Volker Braun
I didn't even know that that was possible, yet another way to plot stuff 
that is not accessible via plot()...

There is no ticket for refactoring view() into something consistent except 
for the awfully vague #18033. IMHO the finite state machines should go with 
the program and

* Have plot() produce a Graphics object that contains all of the desired 
output

* There should be a plot(format='tikz'), or maybe plot(viewer='tikz') etc, 
that produces tikz+latex from the Graphics object. 




On Thursday, April 2, 2015 at 9:52:08 PM UTC+2, Daniel Krenn wrote:
>
> The command 
>   view(transducers.GrayCode()) 
> produces tikz-output which can be show by latex. In sagenb this was 
> shown directly inside the notebook, while in the ipython-notebook this 
> opens a new pdf with the picture. 
>
> It would be nice to have this shown in the ipynb... 
>
> Comments? Guesses when this will be possible? Trac-Ticket? 
>
> Best wishes, 
>
> Daniel 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.