Skip to content

Commit 4ca0705

Browse files
committed
DOC: HTML representations via IPython display
1 parent 230a37a commit 4ca0705

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ to a list).
5353

5454
#### Console output
5555

56-
Conversely to the standard usage of the python console, the `print` function is
57-
required to get a output in the console or in the Jupyter cell output.
56+
Conversely to the standard usage of the Python console, you need to print
57+
objects explicitly (e.g. by using `print`).
5858

5959
- No output to console
6060
```python
@@ -67,6 +67,17 @@ required to get a output in the console or in the Jupyter cell output.
6767
print(100)
6868
```
6969

70+
If you want IPython to use more advanced representations, you can do so via
71+
IPython's display library (e.g. display a Pandas dataframe as a HTML table).
72+
73+
```python
74+
%%space <space-name>
75+
from IPython.display import display
76+
from pandas import DataFrame
77+
dataframe = DataFrame(data=[[1, 2]])
78+
display(dataframe)
79+
```
80+
7081
### Remove a space
7182

7283
```python

0 commit comments

Comments
 (0)