For my IPython QtConsole, I have a startup script in my profile_default/startup folder, which contains the following lines:
ipy = get_ipython()
try:
plot
except NameError: # not loaded yet
ipy.run_line_magic("pylab", "inline")
This works fine in the QtConsole and Notebook, but if I now run ipython with no subcommand, i.e. in the Windows command line, it prints an error that the 'inline' GUI is invalid.
Is there any way I can check for the subcommand (qtconsole, notebook or "None") inside the startup script, so I can avoid that message?
(IPython QtConsole 3.2.0, WinPython-64bit-3.4.3.4)
ipy = get_ipython(), which I forgot, as @Matt correctly assumed. - Jeronimo