Re: turning off pylab inline plots

1,870 views
Skip to first unread message

Pierre Raybaut

unread,
Jan 3, 2013, 4:38:50 PM1/3/13
to winp...@googlegroups.com
The "IPython Qt Console.exe" launcher is hard-coded to run IPython
with inline pylab mode turned on.

But, there is a "scripts" folder at the WinPython root directory level
which contains examples of batch scripts for running things with the
embedded Python interpreter in the correct environment.

Deriving from the 'pyqt_demo.bat' example, I've just wrote the following lines:

@echo off
call %~dp0env.bat
cd %WINPYDIR%\Scripts
start %WINPYDIR%\pythonw.exe ipython-script.py qtconsole --pylab=qt %*

Copy/paste them to a new file named 'ipython.bat' and located in this
'scripts' directory.

Note that the final "%*" syntax allows you to pass command line
options to this batch script which will be redirected to IPython.

HTH,
-Pierre

2012/12/27 David Brown <dav...@gmail.com>:
> Just trying out WinPython, but need interactive plots when using pylab. Is
> there a way to turn off inline plots while using "IPython Qt Console" tool?
> I saw some discussion online about switching between inline and interactive
> plots. Is that currently possible using WinPython v.2.7.3.2?
>
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "WinPython" group.
> To unsubscribe from this group, send email to
> winpython+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Pierre Raybaut

unread,
Feb 13, 2013, 8:13:24 AM2/13/13
to WinPython
You're right, that's easier but the original request was to be able to
change this option for the standalone IPython Qt Console launched with
the "IPython Qt Console.exe" launcher, not the one which may be
launched from Spyder.

-Pierre

On Feb 13, 10:47 am, Uwe Fechner <uwe.fechner....@gmail.com> wrote:
> I think there is a much more easy way to turn off inline graphics:
> In the spyder menue go to Tools->Preferences
> In the tab "External modules" edit the field "IPython interpreter command
> line options"
> just remove the option --inline, so that it contains only the text:
> "--pylab".
>
> This works fine for me (using winpython with spyder 2.1.12).
>
> Best regards:
>
> Uwe Fechner
>
>
>
>
>
>
>
> On Thursday, January 3, 2013 10:38:50 PM UTC+1, Pierre Raybaut wrote:
>
> > The "IPython Qt Console.exe" launcher is hard-coded to run IPython
> > with inline pylab mode turned on.
>
> > But, there is a "scripts" folder at the WinPython root directory level
> > which contains examples of batch scripts for running things with the
> > embedded Python interpreter in the correct environment.
>
> > Deriving from the 'pyqt_demo.bat' example, I've just wrote the following
> > lines:
>
> > @echo off
> > call %~dp0env.bat
> > cd %WINPYDIR%\Scripts
> > start %WINPYDIR%\pythonw.exe ipython-script.py qtconsole --pylab=qt %*
>
> > Copy/paste them to a new file named 'ipython.bat' and located in this
> > 'scripts' directory.
>
> > Note that the final "%*" syntax allows you to pass command line
> > options to this batch script which will be redirected to IPython.
>
> > HTH,
> > -Pierre
>
> > 2012/12/27 David Brown <dav...@gmail.com <javascript:>>:
> > > Just trying out WinPython, but need interactive plots when using pylab.
> >  Is
> > > there a way to turn off inline plots while using "IPython Qt Console"
> > tool?
> > > I saw some discussion online about switching between inline and
> > interactive
> > > plots.  Is that currently possible using WinPython v.2.7.3.2?
>
> > > David
>
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups
> > > "WinPython" group.
> > > To unsubscribe from this group, send email to
> > > winpython+...@googlegroups.com <javascript:>.
> > > For more options, visithttps://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages