##// END OF EJS Templates
populate matplotlib / pylab enums from backends.keys()
MinRK -
Show More
@@ -41,6 +41,9 b' from IPython.utils.traitlets import ('
41 # Aliases and Flags
41 # Aliases and Flags
42 #-----------------------------------------------------------------------------
42 #-----------------------------------------------------------------------------
43
43
44 backend_keys = sorted(pylabtools.backends.keys())
45 backend_keys.insert(0, 'auto')
46
44 shell_flags = {}
47 shell_flags = {}
45
48
46 addflag = lambda *args: shell_flags.update(boolean_flag(*args))
49 addflag = lambda *args: shell_flags.update(boolean_flag(*args))
@@ -175,12 +178,12 b' class InteractiveShellApp(Configurable):'
175 gui = CaselessStrEnum(('qt', 'wx', 'gtk', 'glut', 'pyglet', 'osx'), config=True,
178 gui = CaselessStrEnum(('qt', 'wx', 'gtk', 'glut', 'pyglet', 'osx'), config=True,
176 help="Enable GUI event loop integration ('qt', 'wx', 'gtk', 'glut', 'pyglet', 'osx')."
179 help="Enable GUI event loop integration ('qt', 'wx', 'gtk', 'glut', 'pyglet', 'osx')."
177 )
180 )
178 matplotlib = CaselessStrEnum(['tk', 'qt', 'wx', 'gtk', 'osx', 'inline', 'auto'],
181 matplotlib = CaselessStrEnum(backend_keys,
179 config=True,
182 config=True,
180 help="""Configure matplotlib for interactive use with
183 help="""Configure matplotlib for interactive use with
181 the default matplotlib backend."""
184 the default matplotlib backend."""
182 )
185 )
183 pylab = CaselessStrEnum(['tk', 'qt', 'wx', 'gtk', 'osx', 'inline', 'auto'],
186 pylab = CaselessStrEnum(backend_keys,
184 config=True,
187 config=True,
185 help="""Pre-load matplotlib and numpy for interactive use,
188 help="""Pre-load matplotlib and numpy for interactive use,
186 selecting a particular matplotlib backend and loop integration.
189 selecting a particular matplotlib backend and loop integration.
General Comments 0
You need to be logged in to leave comments. Login now