IPython problem

56 views
Skip to first unread message

Seyma Ortatatli

unread,
Jan 16, 2015, 6:09:22 AM1/16/15
to diffp...@googlegroups.com

Dear Group,

 

I have a question concerning “IPython”. I’ve installed the “Enthought Canopy” to work with PDFgetX3. Actually the installation is successful, because I could make work the tutorials (Ni and Pt) given in the PDFgetX3 user guide with ease. The problem is when it comes to use “interactive tuning of parameters”, IPython line (ln[1], … ) sometimes allows me to write commands there (like “ ln[1]: tuneconfig()”) but most of the time it hangs out (see attached image please).

 

I do not know whether it’s because of the PC which is not that fast or is there a bug in the IPython interface. Any suggestion is highly appreciated.

 

Many thanks & have a nice weekend,

 

Seyma.

 

 

 

-------------------------------------------------------

Seyma Ortatatli

Department of Heterogeneous Catalysis

Max-Planck-Institut für Kohlenforschung

Kaiser-Wilhelm-Platz 1

D-45470 Mülheim an der Ruhr (Germany)

phone: +49.208.306-2173

eMail: orta...@mpi-muelheim.mpg.de

http://www.kofo.mpg.de

 

 

IPython problem.png

Pavol Juhas

unread,
Jan 20, 2015, 11:46:04 AM1/20/15
to DiffPy developers
Hi Seyma,

In your example does pdfgetx3 open a plot window and then a control window with sliders after the tuneconfig() command?  

Perhaps the problem is in the choice of the GUI backend for the matplotlib plotting library, because some of them don't work very well in the interactive mode.  I'd recommend to try another backend QT4Agg.  The backend can be selected by creating a simple text file named matplotlibrc (without the ".txt" extension) in the working directory, which contains the following single line:

backend : QT4Agg

There may be more GUI backends available with Enthought Canopy, but as far as I recall, the QT4 should work fine.  If this helps, you can make the backend choice permanent by moving the matplotlibrc file to the following location (determined from IPython):

In [1]: import matplotlib
In [2]: matplotlib.get_configdir()

For more details about matplotlibrc see http://matplotlib.org/users/customizing.html.

Hope this helps,
Pavol



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



--
    Dr. Pavol Juhas
    Condensed Matter Physics and Materials Science Department
    Brookhaven National Laboratory
    P.O. Box 5000
    Upton, NY  11973-5000

Seyma Ortatatli

unread,
Jan 21, 2015, 2:41:50 AM1/21/15
to diffp...@googlegroups.com

Hi Pavol,

 

Yes, pdfgetx3 opens a plot window and then a control window with sliders after the tuneconfig() command. But if I don’t make any operation for a second while the window is open (or not), the program hangs out. But I’m going to try now what you’ve recommended.

 

Many thanks for help..

 

Cheers,

Seyma Ortatatli

unread,
Jan 23, 2015, 3:56:31 AM1/23/15
to diffp...@googlegroups.com

Dear Pavol,

 

I would like to say that the software worked without any problem when I followed your suggestions. Thank you so much!!

 

Enjoy your day!

 

Regards,

Seyma.

 

-------------------------------------------------------

Seyma Ortatatli

Department of Heterogeneous Catalysis

Max-Planck-Institut für Kohlenforschung

Kaiser-Wilhelm-Platz 1

D-45470 Mülheim an der Ruhr (Germany)

phone: +49.208.306-2173

eMail: orta...@mpi-muelheim.mpg.de

http://www.kofo.mpg.de

 

 

From: diffp...@googlegroups.com [mailto:diffp...@googlegroups.com] On Behalf Of Pavol Juhas


Sent: Dienstag, 20. Januar 2015 17:46
To: DiffPy developers
Subject: Re: IPython problem

 

Hi Seyma,

Monica Dapiaggi

unread,
Jan 23, 2015, 3:57:44 AM1/23/15
to diffp...@googlegroups.com
Dear Seyma
now you know as well...Pavol is a wizard!

cheers,
Monica

Seyma Ortatatli

unread,
Jan 23, 2015, 4:00:30 AM1/23/15
to diffp...@googlegroups.com
Hi Monica,

Yes, I agree that he is!!

Have a nice day..

Best regards,
Seyma.

-------------------------------------------------------
Seyma Ortatatli
Department of Heterogeneous Catalysis
Max-Planck-Institut für Kohlenforschung
Kaiser-Wilhelm-Platz 1
D-45470 Mülheim an der Ruhr (Germany)
phone: +49.208.306-2173
eMail: orta...@mpi-muelheim.mpg.de
http://www.kofo.mpg.de


Reply all
Reply to author
Forward
0 new messages