trying to follow the PyMAPDL example:
Overview of PyMAPDL | Ansys Innovation Courses (exact course: Overview of Ansys PyMAPDL — Lesson 1)
have downloaded the jupyter notebook. I see an error with regard to plotting.
local python: 3.11.8 (and 3.13.9)
pyansys 2025.2.5
ansys.mapdl.core 0.70.2 (and 0.71.3)
jupyterlab 4.5.1
jupyter1.1.1
pyvtk 0.15.8
pydpf 1.1.1
matplotlib 3.10.8
numpy 2.2.2
error happens with plotting, with the command line:
mapdl.vplot
and other plot commands, like eplot.
error happens with all the combinations of versions of python and ansys-mapdl-core above; looks like it is related to asynchronous i/o
note: simulation gets complete. (no run/solve issue)
The error looks like this (for one of the version combinations):
Exception in callback Task.__step()
handle:
Traceback (most recent call last):
File "C:\Users****.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: cannot enter context: <_contextvars.Context object at 0x000002045E7B1340> is already entered
Exception in callback Task.__step()
handle:
Traceback (most recent call last):
File "C:\Users****.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: cannot enter context: <_contextvars.Context object at 0x000002045E7B1340> is already entered
Exception in callback Task.__step()
handle:
Traceback (most recent call last):
File "C:\Users****.pyenv\pyenv-win\versions\3.13.9\Lib\asyncio\events.py", line 89, in _run
self._context.run(self._callback, *self._args)