1- Installing PyWorkbench
2- ######################
1+ Install PyWorkbench
2+ ###################
33
4- Installing PyWorkbench is as simple as installing a Python library. However, a running
5- instance of Workbench is required to use PyWorkbench.
4+ Installing PyWorkbench is as simple as installing any Python library. However, you must
5+ have a running instance of Workbench to use PyWorkbench.
66
7- User installation
8- =================
7+ PyWorkbech has two installation modes: user and developer.
98
10- There are multiple sources for installing the latest stable version of
11- PyWorkbench. These include ``pip `` and ``GitHub ``.
9+ Install in user mode
10+ ====================
11+
12+ You can install PyWorkbench in user mode from PyPI sources using ``pip `` or from the
13+ GitHub repository:
1214
1315.. jinja :: install_guide
1416
@@ -35,8 +37,8 @@ PyWorkbench. These include ``pip`` and ``GitHub``.
3537
3638 python -m pip install git+https://github.com/ansys/pyworkbench.git@{{ version }}
3739
38- Developer installation
39- ======================
40+ Install in developer mode
41+ =========================
4042
4143Developer installation is specifically intended for project maintainers. This
4244specialized installation is tailored to equip developers with the essential
@@ -46,83 +48,82 @@ of technical expertise and familiarity with the project's codebase, rendering it
4648most suitable for individuals actively engaged in its continuous development and
4749maintenance.
4850
49- Start by cloning the repository
51+ #. Cloning the repository:
5052
51- .. code-block ::
53+ .. code-block ::
5254
53- git clone [email protected] :ansys/pyworkbench 55+ git clone [email protected] :ansys/pyworkbench 5456
5557
56- Move inside the project and create a new Python environment:
58+ #. Move inside the project and create a clean Python environment:
5759
58- .. tab-set ::
60+ .. tab-set ::
5961
60- .. tab-item :: Windows
62+ .. tab-item :: Windows
6163
62- .. tab-set ::
64+ .. tab-set ::
6365
64- .. tab-item :: CMD
66+ .. tab-item :: CMD
6567
66- .. code-block :: text
68+ .. code-block :: text
6769
68- py -m venv <venv>
70+ py -m venv <venv>
6971
70- .. tab-item :: PowerShell
72+ .. tab-item :: PowerShell
7173
72- .. code-block :: text
74+ .. code-block :: text
7375
74- py -m venv <venv>
76+ py -m venv <venv>
7577
76- .. tab-item :: Linux/UNIX
78+ .. tab-item :: Linux/UNIX
7779
78- .. code-block :: text
80+ .. code-block :: text
7981
80- python -m venv <venv>
82+ python -m venv <venv>
8183
82- Activate previous environment:
84+ #. Activate the environment:
8385
84- .. tab-set ::
86+ .. tab-set ::
8587
86- .. tab-item :: Windows
88+ .. tab-item :: Windows
8789
88- .. tab-set ::
90+ .. tab-set ::
8991
90- .. tab-item :: CMD
92+ .. tab-item :: CMD
9193
92- .. code-block :: text
94+ .. code-block :: text
9395
94- <venv>\Scripts\activate.bat
96+ <venv>\Scripts\activate.bat
9597
96- .. tab-item :: PowerShell
98+ .. tab-item :: PowerShell
9799
98- .. code-block :: text
100+ .. code-block :: text
99101
100- <venv>\Scripts\Activate.ps1
102+ <venv>\Scripts\Activate.ps1
101103
102- .. tab-item :: Linux/UNIX
104+ .. tab-item :: Linux/UNIX
103105
104- .. code-block :: text
106+ .. code-block :: text
105107
106- source <venv>/bin/activate
108+ source <venv>/bin/activate
107109
108- Install the project in editable mode. This means that any changes you make to
109- the package's source code immediately reflect in your project without requiring you
110- to reinstall it.
110+ #. Install the project in editable mode, which means that any changes you make to
111+ the package's source code is immediately reflected in your project without requiring you
112+ to reinstall it.
111113
112- .. code-block ::
114+ .. code-block ::
113115
114- python -m pip install --editable .
116+ python -m pip install --editable .
115117
116118
117119 Verify your installation
118120========================
119121
120- If you have Ansys Workbench installed locally, you can verify your PyWorkbench
121- installation by starting a Workbench server session on your local computer :
122+ If Ansys Workbench is installed locally, you can verify your PyWorkbench
123+ installation by starting a Workbench server session on your local machine :
122124
123125.. code-block :: python
124126
125127 from ansys.workbench.core import launch_workbench
126128
127129 workbench = launch_workbench()
128-
0 commit comments