Marimo 现已支持 PyCharm
Marimo now runs in PyCharm

原始链接: https://marimo.io/blog/pycharm

用于 PyCharm 的全新 marimo 插件将响应式笔记本直接引入了您的 JetBrains IDE,实现了无需离开开发环境即可测试代码和构建交互式演示的无缝工作流。 主要功能包括: * **深度集成:** 在 PyCharm 中编辑库代码,通过 marimo 的模块重载功能自动更新相关的笔记本单元格。 * **无缝工作流:** 笔记本以标准的 `.py` 文件形式存储,确保与 Git 和版本控制系统的兼容性。该插件可在编辑器标签页内自动管理服务器进程,无需使用外部浏览器窗口。 * **灵活的环境:** 使用您现有的项目解释器运行笔记本,或利用“沙盒模式”(由 `uv` 驱动)运行通过 PEP 723 元数据定义的隔离、自包含的依赖环境。 * **扩展工具:** 在使用笔记本的同时,充分利用 PyCharm 的现有功能(如数据库检查),或使用“marimo-pair”直接在 IDE 内与 AI 智能体协作。 这款开源插件现已在 JetBrains Marketplace 上架,目前处于早期发布阶段。开发团队欢迎用户试用并前往 marimo 的 GitHub 仓库反馈建议或提交错误报告。

抱歉。
相关文章

原文

Today, we are excited to announce a first version of the marimo plugin for PyCharm. You can now add reactive notebooks to your Python projects in PyCharm and other JetBrains IDEs.

PyCharm support has been one of our most requested features, both on our issue tracker and on JetBrains’ tracker. We’re starting with the full marimo editor and plan to improve the integration over time.

Check out the video:

A live notebook next to your code, in your IDE

With the plugin, you can add a marimo notebook to an existing project and import code from the application or library you are developing. You can use the notebook as a live workspace for testing your code or as an interactive demo for it, without leaving your IDE.

marimo’s module reloader updates the notebook cells as you update the imported Python modules. That gives you a tight feedback loop: edit your library code in PyCharm’s editor and see results in a reactive notebook.

Editing a Python module in PyCharm automatically updates the imported function's plot in a marimo notebook
Edit your library code and watch dependent notebook cells update automatically.

marimo notebooks are stored as plain .py files. The plugin identifies a notebook by looking for a marimo import and a matching App declaration, so ordinary Python files continue to open normally. You can switch between the marimo and Source tabs to move between the interactive notebook and native editor. Since marimo notebooks are plain Python files, they work really well with git (or any other VCS). You can use PyCharm VCS tools to version your notebooks alongside your project.

Opening a notebook file starts its local marimo server automatically and loads it in an editor tab. The plugin manages the port and process lifecycle, so there is no extra terminal or a separate browser tab to manage.

Keep your PyCharm workflow

By default, the plugin runs the notebook on your configured Python interpreter, so it uses the same environment and dependencies as your project. If marimo is not installed, the plugin offers to install it for you.

If you want to run the notebook without affecting your project environment, you can start a notebook in sandbox mode. Just choose the Start marimo in Sandbox option by right-clicking on the notebook file. This feature requires uv. With uv, marimo and the notebook dependencies run in an isolated environment; the dependencies are stored directly in the notebook using PEP 723 inline script metadata. The notebook remains self-contained and packages you install stay out of your project environment.

Your PyCharm tools stay available beside the notebook. For example, you can use PyCharm’s database tools to inspect schemas and query tables, then use the notebook to work with that data using Python or SQL.

Note: These tools work side by side rather than through a direct integration, so database connections need to be configured separately in marimo.

Pair with an agent

You can give your agent your marimo notebook with marimo-pair and jam on it together. The Pair with AI dropdown opens a PyCharm terminal and starts a marimo pair session with Claude, Codex, or opencode. You can also select Copy prompt and paste it into another agent, including Junie in PyCharm’s AI Chat.

Try it and help us with feedback

To try the plugin, install marimo from the JetBrains Marketplace, then create a marimo Notebook from the New menu or open an existing marimo .py file.

This is an early preview, and we’d love your feedback. Like marimo, the plugin itself is open source and available on GitHub. Share bugs and ideas in the plugin’s GitHub repository.

联系我们 contact @ memedata.com