Addressing review comments. · pythonian4000/ipython@50add39 · GitHub
Skip to content

Commit 50add39

Browse files
committed
Addressing review comments.
* InteractiveShell.instance() is only called one in core.display. * Fixed docstrings in displayhook. * displaypub is using print().
1 parent 7b2be7d commit 50add39

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

IPython/core/display.py

Lines changed: 3 additions & 2 deletions

IPython/core/displayhook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ def compute_format_data(self, result):
195195
type. It is up to frontends to determine pick a MIME to to use and
196196
display that data in an appropriate manner.
197197
198-
This method only compute the format data for the object and should NOT
199-
actually print or write that to a stream.
198+
This method only computes the format data for the object and should
199+
NOT actually print or write that to a stream.
200200
201201
Parameters
202202
----------
203203
result : object
204-
The Python object passed to the display hook, whose forat will be
204+
The Python object passed to the display hook, whose format will be
205205
computed.
206206
207207
Returns

IPython/core/displaypub.py

Lines changed: 3 additions & 1 deletion

0 commit comments

Comments
 (0)