Examples#
Examples in the form of Jupyter notebooks demonstrate API usage. To run these notebooks, perform these steps:
Create and activate a Python virtual environment:
python -m venv .venv .venv\Scripts\activate.bat For more information on creating and installing a virtual environment, see :ref:`dev_install`.
Ensure that you have the latest version of pip:
python -m pip install -U pip
Build and install the
ansys-edb
andansys-api
packages:python -m pip install -e .
Install Jupyter notebook requirements:
python -m pip install .[notebook]
Install the IPython kernel:
ipython kernel install --user --name=.venv
Launch Juptyer notebook:
jupyter-notebook
Navigate to desired notebook example, change the kernel to the virtual environment, and execute the notebook with the desired settings.