Skip to content

About

Run Python in IntelliJ IDEA Community with zero setup — portable interpreter, one-click run, optional pylsp code intelligence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Python Portable

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.

Features

  • Portable Python — download a self-contained CPython from inside the IDE (astral's python-build-standalone, the same builds uv uses). Stored under ~/.python-portable.
  • Run a .py file — gutter ▶ / right-click ▸ Run, with the portable interpreter and an Environment variables field.
  • Syntax highlighting — lexer-based, for .py files.
  • 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 / freeze in 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.

Architecture

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.

Build

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)

About

Run Python in IntelliJ IDEA Community with zero setup — portable interpreter, one-click run, optional pylsp code intelligence.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages