python-client-api
Add or modify Visdom Python client methods with correct server/frontend parity and typing updates
来源信息
- 仓库
- fossasia/visdom
- 最近来源活动
- 2026年8月13日 13:03
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 10,333
- Forks
- 1,298
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- python-client-api
- description
- Add or modify Visdom Python client methods with correct server/frontend parity and typing updates
# Skill: Python Client API Changes
## When to Use
Use this skill when adding or changing methods in `py/visdom/__init__.py`.
## Core Workflow
1. Add/update the `Visdom` method in `py/visdom/__init__.py`.
2. Keep `@pytorch_wrap` on public plotting APIs.
3. Build payloads through `self._send(...)` with consistent keys (`data`, `win`, `eid`, `opts`).
4. Update `py/visdom/__init__.pyi` for type stub parity.
5. If payload shape changes, update server handling (`py/visdom/utils/server_utils.py`) and pane rendering assumptions.
6. Add or update demo usage in `example/` and relevant Playwright tests.
## Guardrails
- Do not bypass `_send()` with ad-hoc transport logic.
- Keep backward compatibility for `win`, `env`, and `update` behavior.
- API changes must be reflected in docs and type stubs.
## Documentation
- [Skill reference](references/REFERENCE.md)
- `py/visdom/__init__.py`
- `py/visdom/__init__.pyi`
- `py/visdom/utils/server_utils.py`
- `py/visdom/server/handlers/web_handlers.py`
- `AGENTS.md`
- `CONTRIBUTING.md`
## Assets
- See `assets/README.md` and store templates/resources in `assets/`.
## Tests
- Follow the default flow in `references/TESTS.md`.
在 GitHub 查看