I like the idea of showing plots in the viewrendered window. What about 
embedding the ipython qtconsole in a separate leo tab like we have for 
Spell, Nav, Task, etc?

Andre
  

On Saturday, March 19, 2016 at 6:02:46 PM UTC-5, Edward K. Ream wrote:
>
> On Saturday, March 19, 2016 at 5:34:55 PM UTC-5, Zoom.Quiet wrote:
>>
>> On Sat, Mar 19, 2016 at 5:19 PM, Edward K. Ream 
>
>
> > OMG, Leo can run all the matplotlib examples unchanged, provided that 
>> --ipython is in effect. I tried the animation example.  It's cute. 
>>
>> Crazy ! but why?! 
>>
>> that means Jupyter team think just same with us ? 
>>
>
> It means that IPython/Jupyter provides the resources needed to show 
> matplotlib plots in Qt window.  That's a pretty big deal: the window has 
> icons that allow you to save the plot as a file, resize the plot, etc., as 
> discussed here <http://jupyter.org/qtconsole/stable/>.
>
> That page also discusses embedding the qt console in a qt app 
> <http://jupyter.org/qtconsole/stable/#embedding-the-qtconsole-in-a-qt-application>.
>  
> I'll be studying this closely.  Ideally, we would like to show the output 
> of matplotlib.pyplot.plot in Leo's viewrendered window.
>
> There is lots of work to do:
>
> 1. At present, running the same matplotlib script in Leo twice does *not* 
> update the qt plot. In contrast, the IPython console *does* update the 
> plot.
>
> 2. Nothing gets plotted if --ipython is not in effect. I'll be tracing 
> through the plot function to see where the output gets created (or 
> swallowed).
>
> Hmm.  It may be best always to rely on the --ipython option.  It creates 
> the Jupyter server. Leo surely should use that when available. It's a major 
> piece of work.  Otoh, matplotlib doesn't require IPython, so maybe some 
> plots could run independently of IPython.
>
> 3. It would be cool to provide all the goodies in the Qt Console window 
> (saving to file, etc) from Leo's viewrendered pane.  It's got to be 
> possible.
>
> *Note*: we will want output to go to the viewrendered pane*. *That way 
> the user could manage thousands of IPython scripts in the same .leo file.  
> I'll soon be creating matplotlib_examples.leo, with all the matplotlib 
> scripts organized using @others, etc.  Do you see?
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to