source: orange/orange/doc/ofb/start.htm @ 6538:a5f65d7f0b2c

Revision 6538:a5f65d7f0b2c, 2.8 KB checked in by Mitar <Mitar@…>, 4 years ago (diff)

Made XPM version of the icon 32x32.

Line 
1<html>
2<HEAD>
3<LINK REL=StyleSheet HREF="../style.css" TYPE="text/css">
4<TITLE>Orange for Beginners: Start With Orange</TITLE>
5</HEAD>
6<body>
7
8<p class="Path">
9Prev: <a href="default.htm">On Tutorial 'Orange for Beginners'</a>,
10Next: <a href="load_data.htm">Load-in the data</a>,
11Up: <a href="default.htm">On Tutorial 'Orange for Beginners'</a>
12</p>
13
14<H1>Start With Orange</H1>
15
16<p>To start Orange Scripting, you will need to <a href="/download.html">download</a>
17and install Orange. Notice that
18Python installation comes in two flavors: Python itself, or Python
19embedded within ActiveState environment. We recommend you to
20install the later. The biggest bonus is a free editor, called
21PythonWin, with code completion feature. Orange and Orange modules
22come with many keywords for classes and methods, and it helps if
23editor can help you find the right names for them. Here is a
24partial snapshot of PythonWin with this feature:</p>
25
26<img border=0 src="python_win.png" alt="Orange in PythonWin">
27
28<p>Once you have installed Python and Orange, open the Command
29Prompt (usually at Start-&gt;Programs-&gt;Accessories menu), type
30python, and once you get Python&rsquo;s prompt
31(&ldquo;&gt;&gt;&gt;&rdquo;) type &ldquo;import orange&rdquo; and
32press &lt;Return&gt; (or &lt;Enter&gt;; whatever the biggest key on
33your keyboard is). If Python does not complain (like in the window
34below), you have just successfully completed the installation.
35Press &lt;Ctrl&gt;&lt;Z&gt; followed by &lt;Return&gt; to exit
36Python.</p>
37
38<img border=0 src="dos_prompt.png" alt="Orange and Python from DOS Prompt">
39
40<p>If you have ActiveState Python (which we recommend), than you
41may try to run PythonWin (Start-&gt;ActiveState
42ActivePython-&gt;PythonWin Environment). Go to its Interactive
43Window (this should open by itself within PythonWin window), and on
44prompt &ldquo;&gt;&gt;&gt;&rdquo; type &ldquo;import orange&rdquo;.
45If this worked through Command Prompt, it should work here as well.
46To try to see how keyword completion works, start typing
47orange.sys.version and see how PythonWin can help you with that
48(type &lt;tab&gt; if you like what PythonWin proposes). Always type
49&lt;Enter&gt; or &lt;Return&gt; at the end of the command line!</p>
50
51<p>The Interactive Window of PythonWin has a nice property that if
52you find some line with a command that you have already entered,
53move cursor on any part of it and then press return, it will open a
54new command line with exactly the same command and allow to edit
55it.</p>
56
57<p>Now enough with the basics on Python environment. Let&rsquo;s
58start using Orange and first see how to <a href=
59"load_data.htm">read a data file</a>.</p>
60
61<hr><br><p class="Path">
62Prev: <a href="default.htm">On Tutorial 'Orange for Beginners'</a>,
63Next: <a href="load_data.htm">Load-in the data</a>,
64Up: <a href="default.htm">On Tutorial 'Orange for Beginners'</a>
65</p>
66
67</body></html>
68
Note: See TracBrowser for help on using the repository browser.