##// 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 41 # Aliases and Flags
42 42 #-----------------------------------------------------------------------------
43 43
44 backend_keys = sorted(pylabtools.backends.keys())
45 backend_keys.insert(0, 'auto')
46
44 47 shell_flags = {}
45 48
46 49 addflag = lambda *args: shell_flags.update(boolean_flag(*args))
@@ -175,12 +178,12 b' class InteractiveShellApp(Configurable):'
175 178 gui = CaselessStrEnum(('qt', 'wx', 'gtk', 'glut', 'pyglet', 'osx'), config=True,
176 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 182 config=True,
180 183 help="""Configure matplotlib for interactive use with
181 184 the default matplotlib backend."""
182 185 )
183 pylab = CaselessStrEnum(['tk', 'qt', 'wx', 'gtk', 'osx', 'inline', 'auto'],
186 pylab = CaselessStrEnum(backend_keys,
184 187 config=True,
185 188 help="""Pre-load matplotlib and numpy for interactive use,
186 189 selecting a particular matplotlib backend and loop integration.
General Comments 0
You need to be logged in to leave comments. Login now