<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python%2FC2%2FGetting-started-with-ipython%2FGujarati</id>
		<title>Python/C2/Getting-started-with-ipython/Gujarati - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python%2FC2%2FGetting-started-with-ipython%2FGujarati"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;action=history"/>
		<updated>2026-04-27T15:44:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6873&amp;oldid=prev</id>
		<title>Jyotisolanki at 08:53, 31 October 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6873&amp;oldid=prev"/>
				<updated>2013-10-31T08:53:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;amp;diff=6873&amp;amp;oldid=6872&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6872&amp;oldid=prev</id>
		<title>Jyotisolanki at 08:47, 31 October 2013</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6872&amp;oldid=prev"/>
				<updated>2013-10-31T08:47:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;amp;diff=6872&amp;amp;oldid=6810&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6810&amp;oldid=prev</id>
		<title>Jyotisolanki: Created page with '{| border=1 !Timing !Narration |- | 0:00  | Hello Friends and Welcome to the tutorial on &quot;getting started with ipython&quot;.  |- | 0:07 | At the end of this tutorial, you will be abl…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python/C2/Getting-started-with-ipython/Gujarati&amp;diff=6810&amp;oldid=prev"/>
				<updated>2013-10-29T11:31:12Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{| border=1 !Timing !Narration |- | 0:00  | Hello Friends and Welcome to the tutorial on &amp;quot;getting started with ipython&amp;quot;.  |- | 0:07 | At the end of this tutorial, you will be abl…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
!Timing&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
| 0:00&lt;br /&gt;
&lt;br /&gt;
| Hello Friends and Welcome to the tutorial on &amp;quot;getting started with ipython&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 0:07&lt;br /&gt;
| At the end of this tutorial, you will be able to,&lt;br /&gt;
&lt;br /&gt;
# invoke the ipython interpreter .&lt;br /&gt;
# quit the ipython interpreter.&lt;br /&gt;
# navigate the ipython session history.&lt;br /&gt;
# use tab-completion for writing ipython functions.&lt;br /&gt;
# look-up documentation of functions.&lt;br /&gt;
# interrupt incomplete or incorrect commands.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  0:27&lt;br /&gt;
| IPython is an enhanced Python interpreter that provides features like tab-completion, easier access to help and many other functionalities.&lt;br /&gt;
|-&lt;br /&gt;
| 0:37&lt;br /&gt;
|Let us first see how to start the  ipython  interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 0:41&lt;br /&gt;
| First open the terminal, type ipython in the terminal and hit enter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 0:51&lt;br /&gt;
| After getting some information about the version of Python installed and some help commands, we get a prompt with In[1]:.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 0:59&lt;br /&gt;
|But, if you get an error saying 'ipython is not installed' then refer to the tutorial on how to install the packages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:09&lt;br /&gt;
| Now, lets see how we can quit the ipython interpreter, press Ctrl-D.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:17&lt;br /&gt;
| A prompt will appear to confirm whether you really want to exit, type y to say yes and quit ipython and n to say no if you don't want to quit the ipython. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:28&lt;br /&gt;
| Press y.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:32&lt;br /&gt;
| Now since we have quit the interpretor, let us start it again by typing ipython&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:42&lt;br /&gt;
| And now let's see, how to use the interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:46&lt;br /&gt;
|Start with the simplest thing, addition.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:48&lt;br /&gt;
|type ''1+2 ''at the prompt. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:55&lt;br /&gt;
|IPython promptly gives back the output as ''3''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 1:59&lt;br /&gt;
|Notice that the output is displayed with an Out[1] indication.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2:05&lt;br /&gt;
| Now, Let us now try few more operations such as, ''5 minus 3, 7 minus 4, 6 into 5''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2:23&lt;br /&gt;
| Now let's see how the ipython remembers the history of commands. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2:29&lt;br /&gt;
|For example ,''print 1+2''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2:33&lt;br /&gt;
|Instead of typing the whole thing,use the up arrow key to go back to the command ''1+2''which we did before, now use the left-arrow key to navigate to the beginning of the line and type the word``print``and press space.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 2:55&lt;br /&gt;
| We have changed the line to print 1+2, now press enter. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:02&lt;br /&gt;
|The interpreter prints the result as ''3''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:06&lt;br /&gt;
| Please note that the indication Out square brackets is not shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:11&lt;br /&gt;
| Now let us do print'' 10 into 2''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:16&lt;br /&gt;
|We use the up arrow key to navigate to the previous command'' 1+2''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:22&lt;br /&gt;
| Now change ''1 plus 2 to 10 into 2'' and press enter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:34&lt;br /&gt;
| Till now, we saw how to invoke the ipython interpreter,quit the ipython and navigate through previous commands in ipython. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:42&lt;br /&gt;
|Now, let's see, what is tab-completion?. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:47&lt;br /&gt;
|let's take an example, suppose we want to use the function round.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 3:52&lt;br /&gt;
| For this we just type ''ro'' at the prompt and press the tab key.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4.00&lt;br /&gt;
| As you can see on the terminal, IPython completes the command ''ro'' into round, This feature of ipython is called the tab-completion.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:08&lt;br /&gt;
| Let's see some more possibilities of tab completion just type'' r'' and then press the'' tab''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:19&lt;br /&gt;
| As you can see that IPython does not complete the command. This is because, there are many possibilities of ''r'' therefore it just lists out all the possible completions of r.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:31&lt;br /&gt;
| Now let's try out an exercise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:33&lt;br /&gt;
| Pause the video,solve the problem and resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:39&lt;br /&gt;
| 1. find out the commands starting with &amp;quot;ab&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:44&lt;br /&gt;
| 2. list out the commands starting with &amp;quot;a&amp;quot;?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 4:54&lt;br /&gt;
|'' ab'' tab completes to''abs'' and ''a tab gives us a list of all the commands starting with a.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:07&lt;br /&gt;
| Now, let's see what the functions abs is used for.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:12&lt;br /&gt;
| We will use the help features of ipython to find out this.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:15&lt;br /&gt;
| To see the documentation of a function, type the function name followed by a question mark and hit enter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:24&lt;br /&gt;
| Ipython interpreter will show the documentation for the function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:27&lt;br /&gt;
| Let us see the documentation of the function abs, type abs? and press enter&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:38&lt;br /&gt;
| As the documentation says, ''abs'' accepts a number as an input and returns it's absolute value.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:46&lt;br /&gt;
|lets see few examples,&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 5:49&lt;br /&gt;
|Type ''abs(-19)'' and'' abs(19)'' on the interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:04&lt;br /&gt;
|We get ''19'', as expected, in both the cases.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:08&lt;br /&gt;
| Now lets try it for decimal numbers; lets try'' abs(-10.5)'', we got ''10.5'' as the result.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:24&lt;br /&gt;
| Pause the video here, try out the following exercise and resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:31&lt;br /&gt;
|Look-up the documentation of ''round'' and see how to use it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:39&lt;br /&gt;
| And you can look up the documentation of the function round by typing round ''question mark'' in the ipython interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:47&lt;br /&gt;
| If you notice, there are extra square brackets around ''ndigits''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:53&lt;br /&gt;
| This means that ''ndigits'' is optional and 0 is the default value.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 6:58&lt;br /&gt;
| Optional parameters are shown in square brackets in Python documentation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:03&lt;br /&gt;
|A function ''round'', rounds a number to a given precision.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:09&lt;br /&gt;
| Pause the video here, try out the following exercise and resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:16&lt;br /&gt;
| let us now try few more examples with the function round.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:21&lt;br /&gt;
| Check the output of ''round(2.48) round(2.48, 1) round(2.48, 2) round(2.484) round(2.484, 1) round(2.484, 2)''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:43&lt;br /&gt;
| Now, we got'' 2.0, 2.5 and 2.48'', which are what we expect.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 7:54&lt;br /&gt;
| Let's now see how to correct typing errors, which we often make while typing at the terminal.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08.01&lt;br /&gt;
| As already shown, if we haven't hit the enter key already, we could navigate using the arrow keys and make deletions using delete or backspace key and correct the errors.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:12&lt;br /&gt;
|let us make a typing error deliberately, type round(2.484 and hit enter, without closing the parenthesis.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:25&lt;br /&gt;
| We get a prompt with ''dots'' . &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:28&lt;br /&gt;
|This prompt is the continuation prompt of ''ipython''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:32&lt;br /&gt;
| It appears when, the previous line is incomplete.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:36&lt;br /&gt;
| now complete the command of the same examples with close parenthesis and press enter. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|8:49&lt;br /&gt;
|We got the expected output that is ''2.0''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 8:51&lt;br /&gt;
| In other instances, if we commit a typing error with a longer and more complex expression and end up with the continuation prompt, we can type Ctrl-C to interrupt the command and get back to the  ipython input prompt.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9:15&lt;br /&gt;
| Pause the video here, try out the following exercise and resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9:22&lt;br /&gt;
| 1.type round(2.484, and press enter. and then cancel the command using ''Ctrl-C''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 9:45&lt;br /&gt;
| 2. type the command, round(2.484, 2)&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:09&lt;br /&gt;
| Now, let us revise quickly what we learn't today. In this tutorial,we learn't to,&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:15&lt;br /&gt;
| 1. Invoke the ipython  interpreter by typing ipython.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:20&lt;br /&gt;
| 2. To quit the ipython  interpreter by using ctrl-d.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:22&lt;br /&gt;
| 3. To navigate in the history of  ipython  by using the arrow keys.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:28&lt;br /&gt;
| 4. What is tab-completion &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:30 &lt;br /&gt;
| 5. To see the documentation of functions using question mark.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:34&lt;br /&gt;
| 6.  To Interrupt using ctrl-c when we make an error.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:39&lt;br /&gt;
| Here are some self assessment questions for you to solve&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:44&lt;br /&gt;
|  '''ipython is a programming language similar to Python.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:50&lt;br /&gt;
|''' True or False''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:53 &lt;br /&gt;
| Second one. Which key combination quits ipython ? '' Ctrl + C Ctrl + D Alt + C Alt + D''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:03&lt;br /&gt;
| And The last one. Which character is used at the end of a command, in Ipython to display the documentation. under score'' (_) ''question mark'' (?)'' exclamation mark'' (!)'' ampersand ''(&amp;amp;)''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:16&lt;br /&gt;
| And the answers are,&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:18&lt;br /&gt;
| Ipython is not a programming language, it is just an interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:23&lt;br /&gt;
| Second one is We use ''Ctrl D'' to quit Ipython interpreter.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:27&lt;br /&gt;
| The final one is We use ? at the end of the function name to display its documentation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:36&lt;br /&gt;
| So we hope you have enjoyed this tutorial and found it useful. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11:39&lt;br /&gt;
|Thank you!&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jyotisolanki</name></author>	</entry>

	</feed>