An editor is a program for editing plain text. It is an essential tool for every programmer.
It doesn't matter which editor you use, just don't use Notepad, TextEdit, Word, or Writer. If you already have some favourite, it will just need to be set up.
Editors for programmers let us edit plain text. Unlike programs such as Word, Writer, or Pages, it does not let us format text.
Since we use the editor to enter commands for the computer, we do not need any formatting, we just want to use some of their built-in tricks:
That's what a piece of code looks like in the editor:
1 @app.route('/courses/<course:course>/')
2 def course_page(course):
3 try:
4 return render_template(
5 'course.html',
6 course=course,
7 plan=course.sessions,
8 )
9 except TemplateNotFound:
10 abort(404)
We recommend using Atom for now.
You will already have some editor on Linux (but you can always download Atom).
Just try to type into your command line gedit
or kate
, and if an editor
opens, that's your default Linux editor.
Most Python programmers use complex and extremely powerful programs, so-called IDEs
(Integrated Development Environments),
such as PyCharm, Eclipse or KDevelop.
But they are not very suitable for beginners.
If you want to use an IDE, you should really know it well. And also keep in mind that every coach knows only that one IDE that they use most often, so they might not be able to help you with another.
{ "data": { "sessionMaterial": { "id": "session-material:2018/pyladies-en-prague:install:4", "title": "Editor installation", "html": "\n \n \n\n <h1>Editor installation</h1>\n<p>An editor is a program for editing plain text. It is an essential tool for \nevery programmer.</p>\n<p>It doesn't matter which editor you use, just don't use\nNotepad, TextEdit, Word, or Writer.\nIf you already have some favourite, it will just need to be set up.</p>\n<h2>What can editors for programmers do?</h2>\n<p>Editors for programmers let us edit <em>plain text</em>. Unlike programs such as Word, \nWriter, or Pages, it does not let us <em>format</em> text.</p>\n<p>Since we use the editor to enter commands for the computer, we do not need any formatting, \nwe just want to use some of their built-in tricks:</p>\n<ul>\n<li>Multiple file support – useful for larger projects with multiple files</li>\n<li>Line numbering – each line shows the number. Great for debugging</li>\n<li>Offset – (indentation) Very important in Python.</li>\n<li>Coloring – custom code highlighting helps with readability. </li>\n</ul>\n<div class=\"admonition note\"><p>That's what a piece of code looks like in the editor:</p>\n<div class=\"highlight\"><pre><span></span> <span class=\"mi\">1</span> <span class=\"nd\">@app.route</span><span class=\"p\">(</span><span class=\"s1\">'/courses/<course:course>/'</span><span class=\"p\">)</span>\n <span class=\"mi\">2</span> <span class=\"k\">def</span> <span class=\"nf\">course_page</span><span class=\"p\">(</span><span class=\"n\">course</span><span class=\"p\">):</span>\n <span class=\"mi\">3</span> <span class=\"k\">try</span><span class=\"p\">:</span>\n <span class=\"mi\">4</span> <span class=\"k\">return</span> <span class=\"n\">render_template</span><span class=\"p\">(</span>\n <span class=\"mi\">5</span> <span class=\"s1\">'course.html'</span><span class=\"p\">,</span>\n <span class=\"mi\">6</span> <span class=\"n\">course</span><span class=\"o\">=</span><span class=\"n\">course</span><span class=\"p\">,</span>\n <span class=\"mi\">7</span> <span class=\"n\">plan</span><span class=\"o\">=</span><span class=\"n\">course</span><span class=\"o\">.</span><span class=\"n\">sessions</span><span class=\"p\">,</span>\n <span class=\"mi\">8</span> <span class=\"p\">)</span>\n <span class=\"mi\">9</span> <span class=\"k\">except</span> <span class=\"n\">TemplateNotFound</span><span class=\"p\">:</span>\n <span class=\"mi\">10</span> <span class=\"n\">abort</span><span class=\"p\">(</span><span class=\"mi\">404</span><span class=\"p\">)</span>\n</pre></div></div><h2>Choosing and setting up an editor</h2>\n<p>We recommend using <em>Atom</em> for now.</p>\n<ul>\n<li><a href=\"/2018/pyladies-en-prague/beginners-en/install-editor/atom/\">Atom</a> </li>\n</ul>\n<p>You will already have some editor on Linux (but you can always download Atom).\nJust try to type into your command line <code>gedit</code> or <code>kate</code>, and if an editor \nopens, that's your default Linux editor.</p>\n<ul>\n<li><a href=\"/2018/pyladies-en-prague/beginners-en/install-editor/gedit/\">Gedit</a> – GNOME.</li>\n<li><a href=\"/2018/pyladies-en-prague/beginners-en/install-editor/kate/\">Kate</a> – KDE.</li>\n</ul>\n<h3>IDE</h3>\n<p>Most Python programmers use complex and extremely powerful programs, so-called <code>IDEs</code> \n(<em>Integrated Development Environments</em>),\nsuch as <a href=\"https://www.jetbrains.com/pycharm/\">PyCharm</a>, <a href=\"https://eclipse.org/\">Eclipse</a> or <a href=\"https://www.kdevelop.org/\">KDevelop</a>.\nBut they are not very suitable for beginners.</p>\n<p>If you want to use an IDE, you should really know it well. And also keep in mind\nthat every coach knows only that one IDE that they use most often, so they might not\nbe able to help you with another.</p>\n\n\n " } } }