Ipython qtconsole pylab config issue. #544

Closed
jenshnielsen opened this Issue Jun 29, 2011 · 4 comments

Projects

None yet

3 participants

@jenshnielsen
Contributor

Trying to activate pylab in the qtconsole using f.x. c.IPKernelApp.pylab = 'qt' in ipython_qtconsole_config.py doesn't
seem to have any effect. However if I enter the save in the regular ipython_config.py file it seems to work as expected.

I am using a standard profile_default with config files generated by ipython profile create. Using the latest git master
on ubuntu 11.04.
Activating pylab from the command line also works as expected.

@fperez
Member
fperez commented Jun 29, 2011

Thanks for your report, this looks pretty serious... We'll look into it soon, stay tuned.

@minrk minrk was assigned Jun 29, 2011
@minrk
Member
minrk commented Jun 29, 2011

This is because of the multi-file loading - apps load ipython_config.py followed by <appname>_config.py. Which is a bit weird for the qtconsole, because the frontend's name is 'qtconsole', and the kernel is 'ipkernel', so they don't load the same second config. I will fix this so the kernel's "appname" secondary config is inherited from the frontend, because the kernel should definitely load the frontend config.

@minrk minrk added a commit that closed this issue Jun 29, 2011
@minrk minrk add config file inheritance to kernelapp
Add KernelApp.parent_appname configurable, which sets the default config file.  Frontends should specify this in the arguments they pass to kernels they start.

closes gh-544
e147141
@minrk minrk closed this in e147141 Jun 29, 2011
@minrk
Member
minrk commented Jun 29, 2011

fixed now - kernels inherit default config file from the launching frontend.

@jenshnielsen
Contributor

Yes that fixes it. Thanks

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@minrk minrk add config file inheritance to kernelapp
Add KernelApp.parent_appname configurable, which sets the default config file.  Frontends should specify this in the arguments they pass to kernels they start.

closes gh-544
052ac94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment