Run Python in IntelliJ IDEA with zero setup — for the times you're working in IDEA and just
need to run a quick .py script, without installing Python or opening PyCharm.
- Portable Python — download a self-contained CPython from inside the IDE (astral's
python-build-standalone, the same buildsuvuses). Stored under~/.python-portable. - Run a
.pyfile — gutter ▶ / right-click ▸ Run, with the portable interpreter and an Environment variables field. - Syntax highlighting — lexer-based, for
.pyfiles. - Code intelligence (optional) — completion / go-to-def / hover / diagnostics via pylsp (python-lsp-server), pip-installed onto the portable interpreter and bridged with LSP4IJ. Fully offline; no Node.js.
- Run pip —
pip install/list/freezein a console.
Not a replacement for PyCharm or the official Python plugin — it's the lightweight "just run a
script" option, and it steps aside where official Python support owns .py.
A re-instantiation of the go-portable skeleton for Python: portable interpreter downloader
(python-build-standalone), runtime .py activation (only where no official Python support),
python script.py run config, LSP4IJ bridge (languageId must be "python"), pylsp via pip,
and a one-click "Enable code intelligence" onboarding banner.
JAVA_HOME=<a JBR 17> ./gradlew buildPlugin # -> build/distributions/python-portable-*.zip
JAVA_HOME=<a JBR 17> ./gradlew runIde # sandbox IDE for testing
JAVA_HOME=<a JBR 17> ./gradlew verifyPlugin # JetBrains Plugin Verifier (publish gate)