If you want to quickly create an app to visualize the structure of a text, try spacy_streamlit. Above is an example.Save the code above as app_name.py. After typing streamlit run app_name.py, the app like below should pop up in your web browser!
streamlit run app_name.py