Skip to content

Commit 02f961a

Browse files
committed
Adds the initial chapter on mu
1 parent e1c29fe commit 02f961a

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

docs/img/mu_running_code.gif

529 KB
Loading

docs/img/mu_starting.gif

340 KB
Loading

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Contents:
1919

2020
installation
2121
thebeginning
22+
mu
2223
variablesanddatatypes
2324
operatorsexpressions
2425
ifelse

docs/mu.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
================
2+
Using an editor
3+
================
4+
5+
Using a proper editor to write code can help a lot while programming or while
6+
working on actual projects. In this chapter we will learn about **mu editor**,
7+
which is a very simple and beginner friendly editor for anyone starting with
8+
Python. It is developed by Nicholas Tollervey.
9+
10+
If you already have an editor of your choice, you can skip this chapter.
11+
12+
Installation
13+
=============
14+
15+
The total download size is around 150MB. Means it will take some time. Give
16+
the following command as your normal user.
17+
18+
::
19+
20+
$ python3 -m pip install -U mu-editor --user
21+
22+
23+
24+
Using mu
25+
---------
26+
27+
You can open the editor from the command line, type **mu** in the terminal.
28+
29+
::
30+
31+
$ python3 -m mu
32+
33+
34+
.. figure:: img/mu_starting.gif
35+
36+
37+
Select Python 3 at the starting screen. Now, your mu editor is ready.
38+
39+
40+
Executing code
41+
--------------
42+
43+
You will have to write any code you want to execute, and then save it with a
44+
proper filename (ends with .py). Then click on the **Run** button to execute
45+
the code. If you want a REPL, then click on the **REPL** button.
46+
47+
.. note:: Remember not to give any space in the filename. Use _ if required, example: download_photos.py
48+
49+
.. figure:: img/mu_running_code.gif
50+
51+
52+

0 commit comments

Comments
 (0)