Show More
@@ -184,15 +184,15 b' class InteractiveShellApp(Configurable):' | |||||
184 | module_to_run = Unicode('', config=True, |
|
184 | module_to_run = Unicode('', config=True, | |
185 | help="Run the module as a script." |
|
185 | help="Run the module as a script." | |
186 | ) |
|
186 | ) | |
187 | gui = CaselessStrEnum(gui_keys, config=True, |
|
187 | gui = CaselessStrEnum(gui_keys, config=True, allow_none=True, | |
188 | help="Enable GUI event loop integration with any of {0}.".format(gui_keys) |
|
188 | help="Enable GUI event loop integration with any of {0}.".format(gui_keys) | |
189 | ) |
|
189 | ) | |
190 | matplotlib = CaselessStrEnum(backend_keys, |
|
190 | matplotlib = CaselessStrEnum(backend_keys, allow_none=True, | |
191 | config=True, |
|
191 | config=True, | |
192 | help="""Configure matplotlib for interactive use with |
|
192 | help="""Configure matplotlib for interactive use with | |
193 | the default matplotlib backend.""" |
|
193 | the default matplotlib backend.""" | |
194 | ) |
|
194 | ) | |
195 | pylab = CaselessStrEnum(backend_keys, |
|
195 | pylab = CaselessStrEnum(backend_keys, allow_none=True, | |
196 | config=True, |
|
196 | config=True, | |
197 | help="""Pre-load matplotlib and numpy for interactive use, |
|
197 | help="""Pre-load matplotlib and numpy for interactive use, | |
198 | selecting a particular matplotlib backend and loop integration. |
|
198 | selecting a particular matplotlib backend and loop integration. |
@@ -106,7 +106,7 b' class MimeBundle(Reference):' | |||||
106 |
|
106 | |||
107 | class ExecuteReply(Reference): |
|
107 | class ExecuteReply(Reference): | |
108 | execution_count = Integer() |
|
108 | execution_count = Integer() | |
109 | status = Enum((u'ok', u'error')) |
|
109 | status = Enum((u'ok', u'error'), allow_none=True) | |
110 |
|
110 | |||
111 | def check(self, d): |
|
111 | def check(self, d): | |
112 | Reference.check(self, d) |
|
112 | Reference.check(self, d) | |
@@ -139,7 +139,7 b' class ArgSpec(Reference):' | |||||
139 |
|
139 | |||
140 |
|
140 | |||
141 | class Status(Reference): |
|
141 | class Status(Reference): | |
142 | execution_state = Enum((u'busy', u'idle', u'starting')) |
|
142 | execution_state = Enum((u'busy', u'idle', u'starting'), allow_none=True) | |
143 |
|
143 | |||
144 |
|
144 | |||
145 | class CompleteReply(Reference): |
|
145 | class CompleteReply(Reference): | |
@@ -165,7 +165,7 b' class KernelInfoReply(Reference):' | |||||
165 |
|
165 | |||
166 |
|
166 | |||
167 | class IsCompleteReply(Reference): |
|
167 | class IsCompleteReply(Reference): | |
168 | status = Enum((u'complete', u'incomplete', u'invalid', u'unknown')) |
|
168 | status = Enum((u'complete', u'incomplete', u'invalid', u'unknown'), allow_none=True) | |
169 |
|
169 | |||
170 | def check(self, d): |
|
170 | def check(self, d): | |
171 | Reference.check(self, d) |
|
171 | Reference.check(self, d) | |
@@ -187,7 +187,7 b' Error = ExecuteReplyError' | |||||
187 |
|
187 | |||
188 |
|
188 | |||
189 | class Stream(Reference): |
|
189 | class Stream(Reference): | |
190 | name = Enum((u'stdout', u'stderr')) |
|
190 | name = Enum((u'stdout', u'stderr'), allow_none=True) | |
191 | text = Unicode() |
|
191 | text = Unicode() | |
192 |
|
192 | |||
193 |
|
193 |
@@ -50,7 +50,7 b' class ZMQTerminalInteractiveShell(TerminalInteractiveShell):' | |||||
50 | ) |
|
50 | ) | |
51 |
|
51 | |||
52 | image_handler = Enum(('PIL', 'stream', 'tempfile', 'callable'), |
|
52 | image_handler = Enum(('PIL', 'stream', 'tempfile', 'callable'), | |
53 | config=True, help= |
|
53 | config=True, allow_none=True, help= | |
54 | """ |
|
54 | """ | |
55 | Handler for image type output. This is useful, for example, |
|
55 | Handler for image type output. This is useful, for example, | |
56 | when connecting to the kernel in which pylab inline backend is |
|
56 | when connecting to the kernel in which pylab inline backend is |
General Comments 0
You need to be logged in to leave comments.
Login now