Skip to content

Briefs do not render correctly in streamlit #156

@atseewal

Description

@atseewal

Prework

Description

The formatting of step briefs is incorrect when rendered using streamlit.

Reproducible example

import pointblank as pb
import streamlit as st

st.set_page_config(layout="wide")

validation = (
    pb.Validate(data=pb.load_dataset(dataset="small_table"))
    .col_vals_gt(columns="d", value=1000, brief="{auto}")
    .col_vals_le(columns="c", value=5, brief="**This {step}** description is kinda big and ugly...")
    .col_exists(columns=["date", "date_time"])
    .interrogate()
)

st.html(validation)

Output:

Image

Expected result

The brief text should be formatted as expected. See the screenshot from #127 below:

Image

Development environment

  • Operating System: Windows 10/11, Python 3.10.11 and 3.11.9
  • Pointblank Version: 0.8.4
  • Streamlit Version: 1.44.0

Additional context

My initial thought is this is related to how streamlit renders HTML. From some cursory investigation, it is a sandboxed environment that limits certain functionality (similar to how data extracts do not download in streamlit - this example also covers that scenario).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions