To run Python code on your Switch, or a Switch emulator, you need to use PyNX. Here’s how to get started.
Installing PyNX¶
Switch¶
You need a Switch with access to the Homebrew Menu in order to run PyNX on your Switch.
- Insert the SD card into your development device.
- Copy the content of the zip release of PyNX into the
/switch
directory on your SD card. - Edit the main.py file within the extracted contents.
- Insert the SD card back into the Switch.
- Run PyNX from the Homebrew Menu.
Yuzu¶
- Install the Yuzu emulator if you haven’t already. You can build it from source or get a pre-compiled build from their website.
- Run Yuzu at least once so that it can create default directories.
- Build PyNX from source, or download a release build from here.
- Extract the nx-python files into Yuzu’s sdmc directory.
- On Windows this directory is located in
C:/Users/{USER}/AppData/Roaming/yuzu/sdmc
. - On Linux and OS X it is located in
~/.local/share/yuzu-emu/
.
- On Windows this directory is located in
- Edit the main.py file as you wish, then launch the PyNX.nro with Yuzu.
RyujiNX¶
<todo>