Show More
@@ -89,8 +89,9 b' classic_prompt = PromptStripper(' | |||||
89 | initial_re=re.compile(r'^>>>( |$)') |
|
89 | initial_re=re.compile(r'^>>>( |$)') | |
90 | ) |
|
90 | ) | |
91 |
|
91 | |||
92 |
ipython_prompt = PromptStripper( |
|
92 | ipython_prompt = PromptStripper( | |
93 | r''' |
|
93 | re.compile( | |
|
94 | r""" | |||
94 | ^( # Match from the beginning of a line, either: |
|
95 | ^( # Match from the beginning of a line, either: | |
95 |
|
96 | |||
96 | # 1. First-line prompt: |
|
97 | # 1. First-line prompt: | |
@@ -107,9 +108,10 b' ipython_prompt = PromptStripper(re.compile(' | |||||
107 | \ ? # With an optional trailing space |
|
108 | \ ? # With an optional trailing space | |
108 |
|
109 | |||
109 | ) |
|
110 | ) | |
110 |
|
|
111 | """, | |
111 | re.VERBOSE |
|
112 | re.VERBOSE, | |
112 | )) |
|
113 | ) | |
|
114 | ) | |||
113 |
|
115 | |||
114 |
|
116 | |||
115 | def cell_magic(lines): |
|
117 | def cell_magic(lines): |
General Comments 0
You need to be logged in to leave comments.
Login now