How can I access IPython’s “display” function?

display is a function in the IPython.display module that runs the appropriate dunder method to get the appropriate data to … display. If you really want to run it

from IPython.display import display
import pandas as pd

data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])


But don’t. IPython is already doing that for you. Just do:


You even might have IPython uninstalled, try:

pip install IPython

or if running pip3:

pip3 install IPython

Leave a Comment