英文:
Can't find "Embed dashboard" in Superset
问题
我将把Superset仪表板嵌入到ReactJs中。当我使用默认的管理员用户登录时,我无法在我当前打开的仪表板下拉菜单中找到"嵌入仪表板"这个词。以前,我在config.py Superset中更改了一些设置。
SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
"EMBEDDED_SUPERSET": True
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'resources':['*'],
'origins': ['http://localhost:8088', 'http://localhost:8888']
}
还有docker-compose.yaml,在设置后重新启动Docker容器。
version: '3'
services:
superset:
image: apache/superset:latest
ports:
- 8088:8088
container_name: superset
restart: always
volumes:
- ../data/superset:/opt/superset/workspace
environment:
- TZ=Asia/Jakarta
- SUPERSET_FEATURE_EMBEDDED_SUPERSET='true'
就像在我的仪表板上显示的那样:
如何让"嵌入仪表板"消息出现?设置中是否有任何错误?
谢谢。
英文:
I'm going to embed the Superset dashboard into ReactJs. When I login using the default admin user I can't find the words "Embed dashboard" in the dashboard dropdown that I'm currently opening. Previously I've changed some settings in config.py Superset
SESSION_COOKIE_SAMESITE = None
ENABLE_PROXY_FIX = True
"EMBEDDED_SUPERSET": True
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'resources':['*'],
'origins': ['http://localhost:8088', 'http://localhost:8888']
}
and docker-compose.yaml, after setting i'm restart docker container
version: '3'
services:
superset:
image: apache/superset:latest
ports:
- 8088:8088
container_name: superset
restart: always
volumes:
- ../data/superset:/opt/superset/workspace
environment:
- TZ=Asia/Jakarta
- SUPERSET_FEATURE_EMBEDDED_SUPERSET='true'
like this display on my dashboard
How do I get the "Embed dashboard" message to appear? Are there any mistakes in the settings?
thanks.
答案1
得分: 2
https://www.tetranyde.com/blog/embedding-superset
> 启用 Superset 嵌入仪表板功能
如果您前往仪表板选项,将找不到嵌入仪表板选项。要启用它,请打开 superset_config.py(位于 docker/pythonpath_dev 目录内)- 此文件允许您配置 Superset 并添加以下功能标志:
>
> FEATURE_FLAGS = {..., "EMBEDDED_SUPERSET": True}
英文:
https://www.tetranyde.com/blog/embedding-superset
> Enable Superset Embed Dashboard Feature
If you go to dashboard options, there is no embed dashboard option. To enable it, open superset_config.py (located inside docker/pythonpath_dev) - this file allows you to configure superset and add the following feature flag:
>
> FEATURE_FLAGS = {..., "EMBEDDED_SUPERSET": True}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论