Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Exporting to Streamlit #501

Open
doufs opened this issue Oct 9, 2023 · 0 comments
Open

[BUG] Exporting to Streamlit #501

doufs opened this issue Oct 9, 2023 · 0 comments

Comments

@doufs
Copy link

doufs commented Oct 9, 2023

Describe the bug
According to the "Exporting to Streamlit" part of docs, after running the example code, it didn't display the HTML content and i found one Error in the browser Console. code is same as docs:

import streamlit as st
import streamlit.components.v1 as components
from pathlib import Path
import pandas as pd
import lux


def app():
    st.title('Analysis of Happy Planet Index Dataset')
    st.write('Check out these cool visualizations!')
    df = pd.read_csv("https://raw.githubusercontent.com/lux-org/lux-datasets/master/data/hpi.csv")
    export_file = 'visualizations.html'
    html_content = df.save_as_html(output=True)
    components.html(html_content, width=800, height=350)


app()

Screenshots
Displayed:
image
Error found:
image

Expected behavior
Displayed according to docs:
image

Could you tell me how to solve this problem?ah..... i'm not skilling at JavaScript related....pls, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant