Skip to content

feat(CodeBlock): support matplotlib in code execution #8069

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

alephpiece
Copy link
Collaborator

@alephpiece alephpiece commented Jul 11, 2025

What this PR does

  • 支持在代码块中使用 matplotlib 生成图像
  • 调整 worker 初始化超时

Before this PR:

无法使用 matplotlib 输出图像

After this PR:

可以使用

屏幕截图 2025-07-11 163902

Fixes #

Why we need it and why it was done in this way

The following tradeoffs were made:

The following alternatives were considered:

Links to places where the discussion took place:

Breaking changes

If this PR introduces breaking changes, please describe the changes and the impact on users.

Special notes for your reviewer

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note


@alephpiece alephpiece added the needs-review the feature/bug/pr needs a product/development reviewing label Jul 13, 2025
@alephpiece
Copy link
Collaborator Author

用 ImageViewer 展示图片。
移除 ImagePreview,它已经完全被 ImageViewer 替代了。

@DeJeune DeJeune requested a review from vaayne July 15, 2025 14:57
@alephpiece alephpiece added this to the v1.5.2 milestone Jul 19, 2025
Copy link
Collaborator

@GeorgeDong32 GeorgeDong32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good,明天我再测一下资源释放啥的是不是正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review the feature/bug/pr needs a product/development reviewing PM said OK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants