Skip to content

[ADVICE] 多媒体数据支持嵌入 HTML #1237

@yar2001

Description

@yar2001

🤪 Features description [Please make everyone to understand it]

希望 SwanLab 能支持在实验中直接嵌入 HTML 多媒体数据,类似 WanDB 提供的 [HTML 数据类型](https://docs.wandb.ai/ref/python/sdk/data-types/html/)。
这样用户就可以上传并展示自定义的 HTML,可视化效果更灵活。

👍 What problem does this feature solve

有了 HTML 支持,前端就能查看用户自定义的内容:

  • 展示 token 概率、强化学习环境等复杂可视化
  • 更自由的排版和折叠内容,方便整理实验数据
  • 结合 AI 生成的 HTML,可快速做出漂亮的可视化面板

👾 What does the proposed API look like

比如:swanlab.log({"custom_html": sw.Html("<div>...</div>")})

🚑 Any additional [like screenshots]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions