You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/python-development-environment.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,16 +66,26 @@ With passwordless ssh and the same username on the ev3dev machine, you can go `s
66
66
67
67
Next we need a versioning system. That's a tool for tracking changes you made to your code. Coincidentally the same tool is also very handy for transferring code between computers or sharing it on the web. There are several, but I prefer git. It's not installed by default so you have to do:
68
68
69
-
sudo apt-get update
70
-
sudo apt-get install git
71
-
git config --global user.email "you@example.com"
72
-
git config --global user.name "Your Name"
69
+
```bash
70
+
sudo apt-get update
71
+
sudo apt-get install git
72
+
git config --global user.email "you@example.com"
73
+
git config --global user.name "Your Name"
74
+
```
73
75
74
76
Now let's make a new project using our versioning system. Just type:
77
+
<<<<<<< HEAD
75
78
76
79
mkdir myproject
77
80
cd myproject/
78
81
git init
82
+
=======
83
+
```bash
84
+
mkdir myproject
85
+
cd myproject/
86
+
git init
87
+
```
88
+
>>>>>>> parent of d05dc7d... Improved code highlighting
79
89
80
90
Yay! We have a new project. It's empty though. So let's add some code. Start a text editor like this:
81
91
`nano run_motor.py`
@@ -103,7 +113,13 @@ What we are going to do now is make a clone of our project on the ev3dev machine
103
113
In the Welcome dialog choose: 'Checkout from version control' > 'Git'
104
114
Now type the hostname of the ev3dev machine, followed by a semicolon the projectname. In the other fields choose a nice parent and project directory.
105
115
116
+
<<<<<<< HEAD
106
117
Now you can continue where you left of on the ev3dev machine, but with a larger screen, better keyboard and more tools! There is one problem, though: PyCharm puts red curly lines under the ev3dev library.
118
+
=======
119
+
{% include screenshot.html source="/images/Mac-OS-X/PyCharm/welcome.png" %}
120
+
121
+
Now you can continue where you left of on the ev3dev machine, but with a larger screen, better keyboard and more tools! There is one problem, though: PyCharm puts red curly lines under the ev3dev library. {% include screenshot.html source="/images/Mac-OS-X/PyCharm/missing-lib.png" %} It doesn't recognise it. And that's logical, because it's missing on the development machine. If we install it we won't be able to run motors, but the documentation and autocomplete will be active. So on your development machine start a terminal and do:
122
+
>>>>>>> parent of d05dc7d... Improved code highlighting
107
123
108
124

0 commit comments