Bug located in `notebooks/helpers/examples_setup.ipynb` - Fails to import ThermalModifier
- Dominant language
- Python
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
### 🔍 Before submitting the issue
- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment
### 🐞 Description of the bug
I'm attempting to run an python notebook examples, specifically `notebooks/Cutout_region.ipynb` .
I get the following error:
```
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File ~\AppData\Local\Temp\ipykernel_28984\1123905355.py:33
31 from ansys.edb.core.definition.ic_component_property import ICComponentProperty
32 from ansys.edb.core.definition.io_component_property import IOComponentProperty
---> [33](https://file+.vscode-resource.vscode-cdn.net/c%3A/***redacted***/pyedb_core/pyedb-core/notebooks/~/AppData/Local/Temp/ipykernel_28984/1123905355.py:33) from ansys.edb.core.definition.material_def import MaterialDef, MaterialProperty, ThermalModifier
34 from ansys.edb.core.definition.material_property_thermal_modifier import (
35 MaterialPropertyThermalModifier,
36 )
37 from ansys.edb.core.definition.multipole_debye_model import MultipoleDebyeModel
ImportError: cannot import name 'ThermalModifier' from 'ansys.edb.core.definition.material_def'
```
The `ThermalModifier` definition was removed in this commit 1cb402da4dec
I think the issue likely originates from 2cabcff0741a
It seems like the right definition was created on the next line - but the old definition for `ThermalModifier` was not removed.
@isaacwaldron
### 📝 Steps to reproduce
I followed the following steps:
1. Software:
1. Windows 11 Pro 24H2
1. VSCode 1.105.1
2. Python 3.13.9
3. Python Extension `ms-python.python` version 2025.16.0
4. Jupyter Extension `ms-toolsai.jupyter` version 2025.9.1
5. Ansys EDT 2025 R2
2. I create a virtualenv and then install deps for the `notebook` target
3. I open `notebooks/Cutout_region.ipynb` in vscode as a jupyter notebook
4. I then click "Run All"
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
Ansys EDT 2025 R2
### 🐍 Which Python version are you using?
3.13
### 📦 Installed packages
```shell
ansys-api-edb==0.2.dev6
-e git+https://git@github.com/ansys/pyedb-core@9562c59631521bfd9c1845ff9f118cbc408c59c5#egg=ansys_edb_core
anyio==4.11.0
argon2-cffi==25.1.0
argon2-cffi-bindings==25.1.0
arrow==1.4.0
asgiref==3.10.0
asttokens==3.0.0
async-lru==2.0.5
attrs==25.4.0
babel==2.17.0
beautifulsoup4==4.14.2
bleach==6.3.0
cachetools==6.2.1
certifi==2025.10.5
cffi==2.0.0
chardet==5.2.0
charset-normalizer==3.4.4
colorama==0.4.6
comm==0.2.3
contourpy==1.3.3
coverage==7.11.0
cycler==0.12.1
debugpy==1.8.17
decorator==5.2.1
defusedxml==0.7.1
distlib==0.4.0
Django==5.2.7
executing==2.2.1
fastjsonschema==2.21.2
filelock==3.20.0
fonttools==4.60.1
fqdn==1.5.1
grpcio==1.76.0
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.11
iniconfig==2.3.0
ipykernel==7.1.0
ipynbname==2025.8.0.0
ipython==9.6.0
ipython_pygments_lexers==1.1.1
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.6
json5==0.12.1
jsonpointer==3.0.0
jsonschema==4.25.1
jsonschema-specifications==2025.9.1
jupyter-events==0.12.0
jupyter-lsp==2.3.0
jupyter_client==8.6.3
jupyter_core==5.9.1
jupyter_server==2.17.0
jupyter_server_terminals==0.5.3
jupyterlab==4.4.10
jupyterlab_pygments==0.3.0
jupyterlab_server==2.28.0
kiwisolver==1.4.9
lark==1.3.1
MarkupSafe==3.0.3
matplotlib==3.10.7
matplotlib-inline==0.2.1
mistune==3.1.4
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
notebook==7.4.7
notebook_shim==0.2.4
numpy==2.3.4
packaging==25.0
pandocfilters==1.5.1
parso==0.8.5
pillow==12.0.0
platformdirs==4.5.0
pluggy==1.6.0
prometheus_client==0.23.1
prompt_toolkit==3.0.52
protobuf==4.25.8
psutil==7.1.2
pure_eval==0.2.3
pycparser==2.23
Pygments==2.19.2
pyparsing==3.2.5
pyproject-api==1.10.0
pytest==8.4.1
pytest-cov==6.2.1
pytest-mock==3.14.1
python-dateutil==2.9.0.post0
python-json-logger==4.0.0
pywinpty==3.0.2
PyYAML==6.0.3
pyzmq==27.1.0
referencing==0.37.0
requests==2.32.5
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rfc3987-syntax==1.1.0
rpds-py==0.28.0
Send2Trash==1.8.3
setuptools==80.9.0
six==1.17.0
sniffio==1.3.1
soupsieve==2.8
sqlparse==0.5.3
stack-data==0.6.3
terminado==0.18.1
tinycss2==1.4.0
tornado==6.5.2
tox==4.32.0
traitlets==5.14.3
typing_extensions==4.15.0
tzdata==2025.2
uri-template==1.3.0
urllib3==2.5.0
virtualenv==20.35.3
wcwidth==0.2.14
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.9.0
```
Contributor guide
Research direction
Start by inspecting notebooks/helpers/examples_setup.ipynb and the failing import in notebooks/Cutout_region.ipynb, then compare the material_def definitions referenced by the issue and the cited commits. Run the notebook's setup or “Run All” flow to confirm the import failure; done means the example starts without the ThermalModifier ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100