Juan Miguel Dela Cruz136 downloadsBrowse and edit Python files with Lezer-powered structure, highlighting, search, and auto-save.
Python Editor is an Obsidian plugin for viewing and editing .py and .pyi source files with CodeMirror 6.
__main__ entry point.Ctrl/Cmd+F search and Ctrl/Cmd+H replace shortcuts.TextFileView save lifecycle.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.
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.