【发布时间】:2019-06-10 15:50:23
【问题描述】:
我正在尝试在网页中实现 apache 超集仪表板。 有人知道如何实现吗?
【问题讨论】:
我正在尝试在网页中实现 apache 超集仪表板。 有人知道如何实现吗?
【问题讨论】:
首先,您需要使用这些选项更新公共角色。
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>
【讨论】:
您的浏览器不支持 iframe。
standalone=true
如你所说,保留 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 路径。
【讨论】: