【问题标题】:Apache superset dashboard in webpage网页中的 Apache 超集仪表板
【发布时间】:2019-06-10 15:50:23
【问题描述】:

我正在尝试在网页中实现 apache 超集仪表板。 有人知道如何实现吗?

【问题讨论】:

    标签: superset apache-superset


    【解决方案1】:

    首先,您需要使用这些选项更新公共角色。

    • 安全/列出角色

    can explore json on Superset, can dashboard on Superset, all database access on all_database_access

    其次,在 HTML 中嵌入仪表板

    <iframe src="localhost:8088/superset/dashboard/5/?standalone=true"></iframe>
    

    【讨论】:

    • 能否请您详细解释一下。(如果您有任何屏幕截图,这将非常有帮助)
    • 当我运行这个 HTML 时它不工作

      您的浏览器不支持 iframe。

    • 尝试使用 标签 w3schools.com" height="300" width="300" />
    • localhost:8088/superset/dashboard/5/… 这是我的仪表板 URL,我的 html 有什么问题吗?
    • 试试link你需要standalone=true
    【解决方案2】:

    如你所说,保留 iframe 标记行。

    <iframe src="linkToYourDashBoard?standalone=true"></iframe>
    

    并检查superset_config.py 文件。

    HTTP_HEADERS = {'X-Frame-Options': 'SAMEORIGIN'}
    

    换行

    HTTP_HEADERS = {'X-Frame-Options': 'ALLOWALL'}
    

    HTTP_HEADERS = {}
    

    不要忘记将superset_config.py 文件添加到您的python 路径。

    【讨论】:

    • 我想在网页中添加认证和授权,可以吗?
    • 是的,你可以。按照文档 flask-appbuilder.readthedocs.io/en/latest/security.html>
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-28
    • 1970-01-01
    • 1970-01-01
    • 2019-09-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多