Use fastai in regular Python program, not in Jupyter notebook

I was trying to run src = Seq2SeqTextList.from_df(df, cols='fr').split_by_rand_pct(0.2).label_from_df(cols='en', label_cls=TextList) from Lesson 7 in a terminal instead of a Jupyter notebook . But I keep getting <IPython.core.display.HTML object>. I really appreciate it if somebody could help me with that~