ml-tooling/opyrator

Allow custom h1 titles, page titles and favicons

cerob opened this issue · 2 comments

cerob commented

Feature description:

Opyrator inserts its name to every project titles and does not allow a change. However, this is undesired and there should be an alternative place to give credits. Like on the footer, as streamlit does.

Problem and motivation:

The cause of behavior is on src/opyrator/ui/streamlit_ui.py file, line 27:

st.set_page_config(page_title="Opyrator", page_icon=":arrow_forward:")

and lines 828-830:

    title = opyrator.name
    if "opyrator" not in opyrator.name.lower():
        title += " - Opyrator"

Since streamlit allows page config to be set once, there is no way but altering the library code manually.

An example:

image

This over-branding behavior should change. A footer reference text along with uri is enough, as people are quite used to see credits at the end of the page.

Is this something you're interested in working on?

Yes

Thanks.

@cerob Thanks for the suggestion! I removed the Opyrator suffix from the h1 title in the most recent release. And configuration options for the page title and icon will be part of an upcoming release.

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days