Python â
Python is central to countless development workflows, and Kloud Workspace ships with a finelyâtuned Python toolchain to keep you productive.
Key features provided outâofâtheâbox:
- Python 3.11 runtime, ready for immediate use.
- Both
pipand the lightningâfastuvpackage manager. - Automatic virtual environment activation when navigating into project directories.
- Opinionated linting & formatting with
ruffits IDE extension. - Languageâintelligence powered by Meta's Pyrefly language server â Rustâbased, typeâaware, fast.
- Preâgenerated
IPython(itself, not preâinstalled) profile that matches the Kloud Workspace color palette.
Package Management with uv â
For dayâtoâday dependency work, we recommend uv, which offers:
- Near instant dependency resolution.
- Deterministic, lockâfileâfriendly installs.
- Seamless compatibility with
requirements.txtandpyproject.toml.
Automatic venv Activation â
Kloud Workspace includes an auto-venv plugin that automatically activates Python virtual environments when you navigate into a project directory.
When you cd into a directory containing a .venv or venv folder, the virtual environment is activated automatically.
When you leave the project directory, it deactivates.
This works seamlessly with uv venv or python -m venv:
Linting & Formatting with ruff â
Kloud Workspace bundles Ruff and its VS Code extension for realâtime feedback. Our default configuration is deep and opinionated:
- Custom caching and line formatting behavior.
- Auto-fixing capabilities enabled by default.
- Fine-tuned rules for indentation width and maximum line length.
- Targeting Python 3.11 for compatibility alignment.
- A carefully selected ruleset that includes and excludes specific error codes from multiple linting plugins.
- Context-aware formatting such as consistent line endings and formatting of docstring code.
- Special rules for import sorting and type-checking blocks.
- Per-file rule overrides to reduce noise in test directories.
Configuration Lookup â
Kloud Workspace ships with a default Ruff configuration at ~/.config/ruff/ruff.toml that suits most projects. If you need custom linting rules, add a ruff.toml file at your projectâs root.
You can also copy the default configuration with:
ws-cli template apply ruffFor more details, refer to the ws-cli documentation.
Language Server â
Kloud Workspace ships Meta's Pyrefly as the Python language server â Rustâbased, typeâaware, and dramatically faster than alternatives. Strict type checking is on by default and honors the standard configuration knobs.
If you prefer a lighterâweight LSP, override the editor settings via WS_EDITOR_SETTINGS_MERGE to disable python.pyrefly.* and select your preferred language server.
Optional Interactive Shell â
For an enhanced REPL experience you can install IPython:
pip install ipython
# or: uv pip install ipythonKloud Workspace already includes a custom IPython profile (/etc/ipython/ipython_config) whose prompt colors and syntaxâhighlighting align with the Kloud Workspace's overall theme.
Once IPython is installed it will pick up these settings automatically, no additional configuration required.