Skip to playerSkip to main contentSkip to footer

Recommended

  • 5/25/2025
A kernel in Jupyter Notebook is a computational engine that executes the code within a notebook. It is a program that runs in the background and is responsible for interpreting and running code cells, and then returning the output back to the notebook interface. Each notebook is associated with a specific kernel, and the kernel's name is displayed in the top right corner of the notebook interface.
#Machine Learning
#Python
#Jupyter Notebook
#Beginners
#Students

Category

📚
Learning
Transcript
00:00In the last lecture, we have a Jupyter Notebook on and we have a active notebook which is in which you can see that error error was.
00:07And I have to tell you that running is running .ipinb, which is active notebook, running .ipinb, which is running .ipinb.
00:18This is Jupyter Notebook, which is a file extension.
00:23So you can see it in your mind.
00:26Now, let's go back.
00:28We'll talk about this tool bar.
00:32We'll talk about this detail in detail.
00:36If you can see it, this is a scissor sign.
00:43This is basically cut cell.
00:46So you can execute it like this.
00:51So you can execute it.
00:53Or let's call this another one time.
00:55If I call this Ola 2 and execute it, this is Ola 2.
01:00If you want to remove Ola 2, you can cut it.
01:04If you want to remove it, this is Ola 2.
01:07If you want to remove this, you can remove it.
01:09Because one or two already execute it.
01:10This is basically last, this is a cut.
01:13So this is where it will execute it.
01:16Now, one thing you can remove it.
01:18If you remove it, this is fifth.
01:20ھیکس کی کیا value ہوگی اگر میں ایکس کو یہاں پہ call کرتا ہوں اور run
01:49کرتا ہوں تو x جو ہے ہمارا basically true ہے sorry two ہے جو کہ last time
01:53ہم نے value save کی تھی تو یہ آپ نے اپنے ذہن میں رکھنا ہے اور ایک
01:57چیز آپ نے note کی ہوگی کہ میں بار بار جب بھی cell کو میں نے execute
02:00کرنا ہوتا ہے تو میں run پہ جا کے click کرتا ہوں اس کا ایک basically
02:04keyboard shortcut بھی ہے اور وہ ہے shift plus enter ٹھیک ہے shift اور enter
02:12جب آپ اکٹھے کریں گے تو یہ automatically execute ہو جاتا ہے تو میں shift
02:16enter کرنے لگا ہوں as you see یہ مجھے error دے رہا ہے کیونکہ یہ shift
02:19enter is not correct python syntax اب جس cell کو بھی آپ نے run کرنا ہو اور
02:25green box آپ کو بتا رہی ہے یہ cell active ہے اور آپ shift enter press
02:29کرتے ہیں تو وہ basically execute ہو جاتا ہے ایک چیز آپ نے ذہن میں
02:33رکھنی ہے کہ ایک cell کے اندر last بھی نہیں ہے کہ آپ صرف ایک
02:36line run کریں you can run as many lines as you want ایک cell کے اندر جتنی
02:41بھی آپ کل دل کریں اتنی lines آپ ڈال سکتے ہیں ٹھیک ہے اچھا اس
02:45کو remove کر دیتے ہیں again we come back to our original position ٹھیک ہے
02:49اس کے ساتھ ایک چھوٹی سی اور important چیز ہے markdown کے اندر آپ
02:55basically جو description ہے آپ کے project کی وہ لکھ سکتے ہیں مثال کے
03:02طور پہ یہ اگر at the moment میں shift enter press کروں تو یہ basically
03:07execute نہیں ہوا ایسا یہ نا یہ as a text treat ہوا ہے ٹھیک ہے اور
03:12اگر آپ heading میں آئیں تو یہاں پہ آپ heading again دے سکتے ہیں
03:16جیسا کہ میں نے پچھلے lecture میں بھی بتایا تھا کہ we let's say
03:21اس کو یہاں پہ انٹر کرنے کا ہے we are working on بلکہ اس کو کہہ
03:27دیتا ہے machine learning project machine learning project ٹھیک ہے یہ machine learning
03:34project ہے again جب آپ اس کو shift enter press کریں گے تو یہ آپ کی heading
03:39count ہوگی ٹھیک ہے اور اس کے بعد آپ یہاں پہ markdown click کر کے یہاں
03:45پہ لکھ سکتے ہیں کہ are going to read a csv file now ٹھیک ہے اور again
03:54shift enter کریں گے تو یہ as a project description آگئے اب جب آپ code میں آئیں
03:59گے تو again آپ دیکھیں اوپر automatically code جو ہے وہ select ہو جاتا ہے لیکن
04:03آپ نے ایک چیز note کی کہ میں یہاں پہ اس کو execute کرتا ہوں shift enter
04:07یہ دیکھیں اب یہ execute ہو گیا آپ نے ایک چیز note کی کہ بار بار
04:10مجھے markdown change کرنے میں اور code change کرنے میں اوپر جا کے اس tab
04:15کو select کرنا پڑتا ہے تو basically آپ یہ key pad کے through بھی کر سکتے
04:20ہیں وہ کیسے آپ نے یہاں پہ note کرنا ہے کہ جہاں پہ میں جو ہی click
04:25کرتا ہوں یہاں پہ pencil کا button آ جاتا ہے یہ pencil بھی سکتا رہی ہے
04:28کہ آپ click mode میں ہیں یوں سمجھ لیجئے کہ mouse control mode میں ہیں آپ
04:34ٹھیک ہے اور جب آپ escape press کرتے ہیں آپ کے corner کے اوپر esc لکھا
04:40ہوا ہے اس طرح لکھا ہوگا corner کے اوپر escape جب آپ اس کو press کرتے ہیں
04:44آپ نے ذرا غور کرنا میں آپ press کرنے لگا ہوں اور میرے mouse کے اوپر آپ نے
04:48دیکھنا ہے یہ کیا ہوا یہ کدھر چلا گیا تو یہ basically indication
04:52ہے کہ اب میں keyboard کے ذریعے سے یہ جو keyboard کی جو different category
05:00ہے وہ select کر سکتا ہوں مثال کے طور پہ اگر اب میں یہاں پہ لکھتا
05:04ہوں نا m اب ذرا دیکھئے یہ markdown automatically ہو گیا ہوا ہے اگر
05:10میں y لکھتا ہوں تو یہ code select ہو گیا تو y کا مطلب ہے code اور m کا
05:15مطلب ہے markdown however آپ نے ایک چیز یاد رکھنی ہے کہ یہ
05:20تب بھی ہوگا جب یہاں پہ آپ edit mode میں نہیں ہوگا pencil mode
05:23میں آپ پہ نہیں کھڑا ہوگا اب ذرا آپ نے غور کرنا میں جو ہی
05:26یہاں پہ click کرتا ہوں pencil واپس آگئی ہے اب اگر میں y press
05:28کرتا ہوں تو یہ y ادھر لکھ دے گا یا m press کرتا ہوں تو m ادھر
05:32لکھ دے گا however وہاں سے mode change نہیں ہوگا اس چیز کا آپ نے
05:35خیال رکھنا ہے again میں کرنے لگا ہوں یہ دیکھئے escape press کیا pencil
05:38اور گئی اب میں اگر لکھتا ہوں m تو یہ دیکھئے markdown mode میں اگر
05:42میں y لکھتا ہوں تو یہ code mode میں آگیا shift enter کرتا ہوں تو یہ
05:46run ہوگا کیونکہ یہ code esc جیسا کوئی code exist نہیں کرتا تو یہاں
05:50پہ error آگیا however اگر میں esc دوبارہ لکھتا ہوں escape press
05:55کر کے میں shift enter press کرتا ہوں یہ problem آگیا نا اب ذرا
06:00آپ نے غور کرنا ہے اب میں اس کو escape press کرنے لگا ہوں ٹھیک ہے اور
06:05میں اس کو markdown بنانے لگوں m press کرتا ہوں اور اب اگر shift
06:09enter press کرتا ہوں تو یہ as a text treat ہوا اور یہاں پہ print ہو
06:12گیا ٹھیک ہے آپ نے یہاں پہ دیکھا کہ اوپر یہ change ہو رہا تھا
06:15excellent تو آپ نے ہم نے basic چیزیں دیکھ لیا اور keyboard کا جو
06:20ہے وہ use دیکھا کہ کس طریقے سے shift enter کرنے سے دیکھ لیا اور
06:24keyboard کا جو ہے وہ use دیکھا کہ کس طریقے سے shift enter کرنے سے
06:29code execute ہوتا ہے اور y press کرنے سے code select ہو جاتا ہے m press کرنے
06:35سے markdown یعنی کہ آپ comment لکھ سکتے ہیں یہاں پہ اس lecture
06:40کو کرتے ہیں close next lecture میں ہم ایک csv file کو read کریں گے

Recommended