Run fastai in terminal instead of ipynb

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 course 7 (fasiai-nlp) in a terminal instead of a Jupyter notebook . But I keep getting <IPython.core.display.HTML object> in the console that stops the process from continuing running. I really appreciate it if somebody could help me with that~