Doc: Describe the Generate Kit option for Python interpreters

Task-number: QTCREATORBUG-30209
Change-Id: I5eec3797d226109eccf4dde5f32b21076c18f2b4
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Leena Miettinen
2024-01-12 16:09:46 +01:00
parent 1307fe5eef
commit ab81f02b13

View File

@@ -21,6 +21,7 @@
\li \l{Create Qt for Python applications}
\li \l{Select the Python interpreter}
\li \l{Create a virtual environment}
\li \l{Create kits for Python interpreters}
\li \l{Use Python interactive shell}
\li \l{Configure Python language servers}
\li \l{Run Python applications}
@@ -95,8 +96,10 @@
\image qtcreator-python-interpreters.webp {Python Interpreters in Preferences}
You can add and remove interpreters and clean up references to interpreters
that you uninstalled, but that still appear in the list. In addition, you
can set the interpreter to use by default.
that you uninstalled, but that still appear in the list.
To use the selected Python interpreter by default, select
\uicontrol {Make Default}.
\section1 Create a virtual environment
@@ -107,6 +110,16 @@
Set the directory where to create the environment in
\uicontrol {Path to virtual environment}.
\section1 Create kits for Python interpreters
\QC automatically adds all Python interpreters it can find to the list of
interpreters in \preferences > \uicontrol Python > \uicontrol Interpreters.
It generates \l{kits-tab}{kits} for the global Python interpreters that are
not inside a virtual environment.
To use a virtual environment as a kit, select it in \uicontrol Interpreters,
and then select \uicontrol {Generate Kit}.
\section1 Use Python interactive shell
You can write Python code in the \uicontrol Edit mode. Select \uicontrol REPL