Mu is a simple code editor developed in Python for Python. Mu has built-in support for Adafruit Circuit Playground Express, micro:bit, PyGame and Python. Mu runs on Windows, Mac, Linux and even the Raspberry Pi.
Installing Mu On Windows
- Go to codewith.mu
- Click on Download
- Under Windows Installer click on either 32 bit or 64 bit depending on the Operating System you are running.
To find out what version of Windows you are running follow these instructions:
- Open Explorer
- Right click on this PC
- Click on properties. Under system type it will say either 32 bit or 64 bit
- Once the installer has downloaded. Locate where the file was downloaded to (normally your Downloads folder)
- Double click on the file to run the installer
- Follow the instructions on screen
You have now got Mu installed on your computer Happy Coding.
Installing Mu On Linux
Each Linux distro is a bit different, so for this guide, I am going to focus on Ubuntu.
- Open up a Terminal window.
- Mu requires Python3. You can check and see if you have Python3 installed by typing
python3 --versionIf nothing is displayed type
sudo apt install python3to install Python3.
- You also need pip3 installed type
pip3 --versionIf it shows nothing you need to install pip3 by typing
sudo apt install python3-pip
- Finally to install Mu type
pip3 install mu_editor
- You can now run Mu from the command line by typing
Now that you have Mu installed you can go and develop in Python3, MicroPython for micro:bit or even CircuitPython for the Adafruit Circuit Playground Express.
Installing Mu On Raspbian
If you are running the latest version of Raspbian (Buster) Mu is in the recommended software menu.
- Click on the Raspberry in the top left corner to open the menu
- Hover over preferences
- Click on Recommended Software
- Click on Programming
- Click on Mu and then click on OK.
If Mu isn’t already under the Recommended Software update your Raspberry Pi by following these steps:
- Open a terminal by clicking on the black square on the menu bar at the top
sudo apt updateand press enter
sudo apt dist-upgradeand press enter
- Once this has complete follow the instructions above to install Mu
Well done you now have Mu installed you can now write some Python code.