Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.38 KB

2023-03-07-PyCX.md

File metadata and controls

45 lines (32 loc) · 1.38 KB
title date permalink excerpt_separator toc tags
Use Python-based PyCX simulator on MacOS M1
2023-03-07
/posts/2023/03-PyCX
<!--more-->
true
pycx

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.

image

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

image

Step 3: Install PyQt6.

!pip install PyQT6

image

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"

image

Step 5: Launch any simulator.

!python ca-panic.py

image