Show More
@@ -440,7 +440,11 b' class IPythonWidget(FrontendWidget):' | |||||
440 | def _make_in_prompt(self, number): |
|
440 | def _make_in_prompt(self, number): | |
441 | """ Given a prompt number, returns an HTML In prompt. |
|
441 | """ Given a prompt number, returns an HTML In prompt. | |
442 | """ |
|
442 | """ | |
|
443 | try: | |||
443 | body = self.in_prompt % number |
|
444 | body = self.in_prompt % number | |
|
445 | except TypeError: | |||
|
446 | # allow in_prompt to leave out number, e.g. '>>> ' | |||
|
447 | body = self.in_prompt | |||
444 | return '<span class="in-prompt">%s</span>' % body |
|
448 | return '<span class="in-prompt">%s</span>' % body | |
445 |
|
449 | |||
446 | def _make_continuation_prompt(self, prompt): |
|
450 | def _make_continuation_prompt(self, prompt): |
General Comments 0
You need to be logged in to leave comments.
Login now