Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Python Editor

Juan Miguel Dela CruzJuan Miguel Dela Cruz136 downloads

Browse and edit Python files with Lezer-powered structure, highlighting, search, and auto-save.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Python Editor is an Obsidian plugin for viewing and editing .py and .pyi source files with CodeMirror 6.

Features

  • CodeMirror 6 editor with line numbers and Python syntax highlighting.
  • Navigable code outline for classes, functions, methods, and the __main__ entry point.
  • Configurable default outline position: right, left, or hidden.
  • Undo/redo, code folding, bracket matching, and Obsidian-styled find/replace.
  • Obsidian-compatible Ctrl/Cmd+F search and Ctrl/Cmd+H replace shortcuts.
  • Automatic saving through Obsidian's TextFileView save lifecycle.
  • Mobile-compatible implementation with no Node.js or Electron runtime APIs.
  • Python code is edited as text and is never executed by the plugin.

Development

npm install
npm run typecheck
npm run build

Copy main.js, manifest.json, and styles.css into:

<vault>/.obsidian/plugins/python-editor/

Then reload Obsidian and enable Python Editor.

Editor architecture

Python source
  -> CodeMirror 6 editor
  -> Python syntax highlighting and editing
  -> Obsidian TextFileView save lifecycle

The editor uses CodeMirror's @codemirror/lang-python language support. Python source is never executed by the plugin.

License

MIT

HealthExcellent
ReviewPassed
About
Edit .py and .pyi files with a Lezer-based Python parser that provides accurate structural parsing and error-tolerant diagnostics. Inspect a navigable outline of imports, decorators, classes, functions, methods, and constants, and edit with CodeMirror 6 (Python highlighting, folding, undo/redo, bracket matching, find/replace); autosaves via Obsidian and never runs code.
CodeLanguagesOutlining
Details
Current version
0.1.4
Last updated
4 weeks ago
Created
4 weeks ago
Updates
4 releases
Downloads
136
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Juan Miguel Dela CruzJuan Miguel Dela Cruzissac404
GitHubissac404
  1. Community
  2. Plugins
  3. Code
  4. Python Editor

Related plugins

Livecodes Playground

Client-side code editor playground - Powered by LiveCodes

Code Block

Convert text into code blocks with automatic language detection.

Python Viewer

Open .py files as a read-only source and structure view with symbols, search, and parse diagnostics.

ruby.wasm

Run ruby code in your notes using WebAssembly.

Code Suite

Execute code inside your notes: Shiki syntax highlighting with 65+ themes, live streaming output, inline Matplotlib and Plotly graphs, shared variables, and styled HTML and PDF export with outputs.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Outliner

Work with your lists like in Workflowy or Roam Research.

Templater

Create and use dynamic templates.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

PlantUML

Generate PlantUML diagrams.