@thiago
I had solved this problem.
to solve this problem,
step1:
I have to download htbuilder from here:
https://github.com/tvst/htbuilder
and overwrite the line 3 into:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
in the htbuilder directory, run
python setup.py install
step2:
download st-annotated-text from github:
GitHub - tvst/st-annotated-text: A simple component to display annotated text in Streamlit apps.
also need to overwrite the line 3 in setup.py
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
in the st-annotated-text directory, run
python setup.py install
finally, I can run the st-annotated-text app
import streamlit as st
from annotated_text import annotated_text, annotation
annotated_text(
"I ",
("Love", "", "#8ef"),
" our ",
("Great", "", "#faa"),
("and", "", "#afa"),
" Useful ",
("Streamlit", "", "#fea"),
("Community", "", "#8ef"),
("!", "", "#afa"),
)
Is it possible to cancel the second argument in annotated_text function like this?
annotated_text(
"I ",
("Love","#8ef"),
" our ",
("Great", "#faa"),
("and", "#afa"),
" Useful ",
("Streamlit", "#fea"),
("Community", "#8ef"),
("!", "#afa"),
)