GUIDE / START

Installation

Prepare Python, install JanelKit in a virtual environment, and check that everything works.

Core janelkit Included with janelkit. Nothing extra to install.
CHAPTER 02 / 29~2 min read · try examples at your own pace
Alpha / 0.2 — These pages document JanelKit 0.2 and its packages. Each series (0.1, 0.2…) may change the public API, always with migration notes: see Changes and migration. The website uses Svelte; the desktop examples use Python and JanelKit, not JavaScript.

What you will learn

  • Why to use a virtual environment and how to create one.
  • What pip install janelkit installs, including the janel command.
  • How to check the installation and fix the most common problem.

Create a virtual environment

A virtual environment is a private folder of Python packages for one project, so the versions it needs do not collide with other projects. Create it once, then activate it every time you open a new terminal to work on the project. While it is active, python and pip refer to that environment.

shell
python -m venv .venv

# Windows
.venv\Scripts\activate
# Linux / macOS
source .venv/bin/activate
Copy

How it works

  1. python -m venv .venv creates the environment in a folder named .venv inside your project.
  2. Activating changes the current terminal only: python and pip now point inside .venv.
  3. Packages installed now stay inside .venv and do not affect other projects.

What you should see

The terminal prompt now starts with (.venv). If you open a new terminal later, run the activate line again.

Install JanelKit

Install the janelkit package with pip. It brings two dependencies: PySide6-Essentials, the essential modules of the official Python binding for Qt, which draw the windows (about 200 MB, without the Add-ons); and qasync, which lets asynchronous Python code run alongside Qt. It also installs the janel command, which creates and checks projects.

Everything the Guide teaches is in this one package, including every built-in control. The packages of the ecosystem add navigation between screens, shared data, system dialogs, translations and editor support, but you do not need them to start.

shell
pip install janelkit
Copy

Common mistakes

  • If your application also uses Qt modules from the Add-ons, such as QtMultimedia to open cameras, QtCharts or QtWebEngine, install them yourself: pip install PySide6-Addons.

Learn moreThe JanelKit ecosystem ↗

Check that it works

Two quick checks confirm that Python can import the framework and that the janel command is available in this terminal.

shell
python -c "import janelkit; print(janelkit.__version__)"
janel --version
Copy

What you should see

Both commands print the installed version, such as 0.2.0.0. janel --help lists the commands: new, parse, compile, dev, build and migrate (their descriptions are in Spanish for now).

Common mistakes

  • janel: command not found usually means the virtual environment is not active in this terminal. Activate it and try again.
  • If import janelkit fails but pip said it installed, you probably installed into a different Python. Use python -m pip install janelkit with the same python you run.

Optional: color .janel files in your editor

Any text editor works. In Visual Studio Code, the JanelKit extension colors the three languages of a .janel file (Python, the template and the styles) and adds comment, bracket and folding support. It only colors code; errors are reported by the janel command.

Learn moreVS Code extension ↗

Key points

  • Work inside an activated virtual environment.
  • pip install janelkit installs the framework, PySide6-Essentials, qasync and the janel command.
  • Check with import janelkit and janel --help before creating a project.

English documentation based on the JanelKit source. For additional details, browse the source docs ↗.