简体   繁体   中英

IPython qtconsole figure window

I realise that tons of people have asked questions about the interactive figure window in IPython but I haven't yet found an answer to my problem. I'm using the IPython qtconsole for plotting, and I'd like it if

 plt.plot(x,y) (plt = matplotlib.pyplot)

would make an interactive figure window pop up BY DEFAULT.

I can get an interactive window for my plot using %pylab qt but I have to use this command every time before plotting, and I'd prefer to just make this a default setting. I am using IPython qtconsole version 3.2.1.

Have a look into iPython Profiles . You should be able to either change the "default" profile to set the matplotlib output be going to qt by default or create another profile and have a convenient alias in your shell set up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM