Use Python-based PyCX simulator on MacOS M1
Published:
This instruction will show how to apply PyCX simulation, a Python-based sample code repository for complex systems, on MacOS M1 through Jupyter Notebook.
Step 1: Direct to PyCX folder directory.

Step 2: Create a new Python notebook inside this directory.

Step 3: Install PyQt6.
!pip install PyQT6

Step 4: Find pycxsimulator.py file inside PyCX directory and add the codes at the top as below.
import PyQt6.QtCore
import os
os.environ["QT_API"] = "pyqt5"

Step 5: Launch any simulator.
!python ca-panic.py

