Interactive Playground
默认进入 Python (Pyodide) REPL。若出现 SyntaxError / unexpected token,多半是误用了 JavaScript kernel。
我们生成的是 Python 代码。右上角 / Kernel 菜单必须是 Python (Pyodide),不要选 JavaScript / TypeScript。
Lab 模式新建 notebook 时:File → New → Notebook → 选 Python。或点下面「重载 Python REPL」。
JupyterLite
Pyodide
已强制 kernel=python。粘贴后 Shift+Enter 运行。
模型推理
魔搭 API-Inference,Qwen / DeepSeek / GLM 等免费调用
约 2000 次/天
OpenAI 兼容
数据集 → 代码
搜索/选择魔搭数据集,生成 JupyterLite 或 MsDataset 代码
Hub 搜索
AI 生成可选