EP Workbench: How to Create Python Environment for your WIP
Note: WIPs run python code in the background and therefore require setting up a Conda environment.
- WIPs (Work-in-Progress) are small plugins that can run code from within EP Workbench.
- You can install a WIP (using the WIP Marketplace) or you can create your own WIP.
Setting up the Python Interpreter (Conda Environment)
-
Download the requirements.txt file from the WIP repository, for example: requirements.txt
-
Open a terminal:
a. Create a new environment:conda create -n wip python=3.11
b. Activate the environment:conda activate wip
c. Install the requirements.txt file from above by typing:cd /path/to/your/folderand thenpip install -r requirements.txt -
You also require openep installation. On your terminal do the following:
a. Go to project location folder (wherever you’d like to install the software):cd /path/to/your/folder
b.git clone https://github.com/openep/openep-py.git
c.cd openep-py
d. Go to the latest branch (usuallyecci-dev);git checkout ecci-dev
e.python3 -m pip install -e . -
Finally, make sure to set the interpreter path on EP Workbench
EP Workbench > WIP tab > Select WIP > Info > Editand then set the python file path (../wip/bin/python3.11). See below for example path.
Note: You can type
where condafrom within the environment to see where the environment path is.
