My favorite Jupyter notebook shortcuts

  Рет қаралды 45,272

Python and Pandas with Reuven Lerner

Python and Pandas with Reuven Lerner

4 жыл бұрын

Do you use Jupyter a lot? I sure do, and I've gotten pretty good at doing so, thanks to a bunch of shortcuts that it provides. In this video, I show you my favorite shortcuts -- the ones that let me live-code quickly when I'm teaching, and just navigate around my notebooks easily when I'm experimenting with Python code on my own.
For free, weekly Python tips, join my "Better developers" newsletter: BetterDevelopersWeekly.com/

Пікірлер: 123
@russnagel1
@russnagel1 3 жыл бұрын
Great content, thank you for making this video. I've been using Jupyter notebook for a few week and have watched plenty of videos, but this is the first time I have heard of command mode. Once again, great content and presentation.
@saumyashah6622
@saumyashah6622 3 жыл бұрын
Thanks. You have been so much helpful. I was tired of continuously shifting from code to markdown and vice versa
@watheusbr
@watheusbr 2 жыл бұрын
Thank you so much this video! I'm newbie with jupyter and I was using the mouse to make new cells or run the code. This shortchuts will be really helpful to make me more productive
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Great to hear -- thanks for letting me know!
@lucky_EINS
@lucky_EINS 3 жыл бұрын
You can use the numbers 1, 2,3 which creates a header with cell as markdown. I use this all the time ;-)
@safaaal-wajidi4606
@safaaal-wajidi4606 3 жыл бұрын
Watched the video on 2X speed. very informative. Thanks!
@viniciussantos6728
@viniciussantos6728 2 жыл бұрын
This is gold! Thank you for the Enter "trick"!!!
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Delighted to know you enjoyed it!
@bhaskaruprety230
@bhaskaruprety230 3 жыл бұрын
As expected that is a very useful video. Thanks
@fuckindia
@fuckindia 2 жыл бұрын
Yes Very Useful 100% satisfied as I didn't knew this is like tresure😍🎵
@cholponzhakshylykova4099
@cholponzhakshylykova4099 2 жыл бұрын
It is indeed a very helpful video, thanks for uploading it!
@shadaflorida4248
@shadaflorida4248 3 жыл бұрын
this is an AMAZING video !! thank you soo much, so helpful and clear
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
I'm delighted you enjoyed it!
@darkphysics4561
@darkphysics4561 3 жыл бұрын
Great video and awesome explanations!
@archit617
@archit617 2 жыл бұрын
Wow what a great video, Crisp and to the point.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Happy to hear you liked it!
@ajaysharma-gw1vy
@ajaysharma-gw1vy 2 жыл бұрын
learned something new today..thanks for posting..
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad to hear it!
@AY-ln1mk
@AY-ln1mk Жыл бұрын
amazing video, thank you!
@ReuvenLerner
@ReuvenLerner Жыл бұрын
I'm glad you enjoyed!
@landrew13577
@landrew13577 2 жыл бұрын
Very useful,thanks
@mohammadadrees5263
@mohammadadrees5263 Жыл бұрын
Thank you sir. This video was very helpful for me.
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Great to hear!
@saiswarna3004
@saiswarna3004 2 жыл бұрын
Thank you so much for this video! 😇
@ReuvenLerner
@ReuvenLerner Жыл бұрын
You are so welcome!
@DartEremite
@DartEremite 2 жыл бұрын
You blow my mind!!! Amazing!!!
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Happy to hear you enjoyed it!
@chillwithme798
@chillwithme798 2 жыл бұрын
very useful, thanks you so much!
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Glad you enjoyed it!
@debatradas1597
@debatradas1597 2 жыл бұрын
Thank you so much 😇
@knowledgelover2736
@knowledgelover2736 3 жыл бұрын
why does this video not have 10MM views?
@jayanth6492
@jayanth6492 3 жыл бұрын
Thanks.That's very useful
@geoblackgeo1
@geoblackgeo1 2 жыл бұрын
Great stuff! To Split cells in Windows place the cursor where you want the split and then ctrl shift minus.
@geoblackgeo1
@geoblackgeo1 2 жыл бұрын
cursor must be at the beginning of the line
@princeprajwal
@princeprajwal 2 жыл бұрын
That was very useful sir
@pardhu1529
@pardhu1529 Жыл бұрын
Thank you soo much !
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad it helped!
@roushanraj3009
@roushanraj3009 3 жыл бұрын
TYSM for these tips....really helped a lottttttt...
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Excellent!
@sajolsajol8393
@sajolsajol8393 Жыл бұрын
great video....thank you....
@MrMallesh1
@MrMallesh1 Жыл бұрын
great , liked it !
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad to hear it!
@niteeshkumar6664
@niteeshkumar6664 3 жыл бұрын
Nice Explanation Dear sir....
@dienhoang4469
@dienhoang4469 2 жыл бұрын
Thanks you, very helpfull !
@zeerakkhan274
@zeerakkhan274 Жыл бұрын
Great Great Video Buddy. Super Handy.
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad it helped!
@pankajkumar-zm9sr
@pankajkumar-zm9sr 2 жыл бұрын
thanks a lot
@aguud
@aguud 3 жыл бұрын
thank you so much
@sumittripathi1331
@sumittripathi1331 3 жыл бұрын
Helpful...thanku
@_iamankitt_
@_iamankitt_ 2 жыл бұрын
Legend 🙌🏻
@meetkcs
@meetkcs Жыл бұрын
Excellent 👍
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad it helped!
@MikeM-uy6qp
@MikeM-uy6qp 28 күн бұрын
This seems helpful. Unfortunately shortcuts aren't working in my notebook. I swear I'm cursed. Every damn thing I do in Python requires troubleshooting.
@ReuvenLerner
@ReuvenLerner 23 күн бұрын
Oh, no! I'm sorry to hear that you're having these problems. It definitely takes time to get your environment working in a way that makes sense and is stable.
@akhilnama1989
@akhilnama1989 3 жыл бұрын
Thanks
@mahadev1050
@mahadev1050 3 жыл бұрын
Amazing👍
@zknolz
@zknolz Жыл бұрын
good job sir
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Thanks for the kind words!
@MindfulMakeup
@MindfulMakeup Жыл бұрын
It doesn't show any keyboard shortcuts list in Jupyter notebook when I press . Quite strange.
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Hmm... you have to be in command mode. Make sure to press ESC first. Otherwise... I dunno!
@abhisekhkumar4948
@abhisekhkumar4948 2 жыл бұрын
nothing, nobody made me to subscribe anyone so quick.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Delighted to hear it!
@billnicholson6742
@billnicholson6742 3 жыл бұрын
Terrific video! In command mode, is there a way to copy multiple non-adjacent coding cells and paste them?
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
In theory, you can use some combination of control and/or alt with copying to get multiple, non-consecutive cells. But I've have very mixed experience with it. Maybe there's a clear formula for making it work, and I simply haven't figure that out yet.
@JuanRivera-fb4sk
@JuanRivera-fb4sk 3 жыл бұрын
Very helpful, thank you! Do you if there's a whole to comment out a whole block in jupyter? I've been trying to google it but no luck, I've seen instructors do it before though.
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
You can comment/uncomment Python code with control-/ (slash). Just highlight the text you want to comment, and hit that key combination.
@JuanRivera-fb4sk
@JuanRivera-fb4sk 3 жыл бұрын
@@ReuvenLerner thank you so much
@beautifulbae7923
@beautifulbae7923 2 жыл бұрын
What’s the easiest way to get brackets () without pressing shiftttt then bracket button?
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Jupyter can't help you there, I'm afraid -- try remapping your keyboard, or getting one with dedicated () keys.
@zahraafadhel7284
@zahraafadhel7284 7 ай бұрын
How to retrieve the icons on notebook?i change themes by using jt -1 orders
@ReuvenLerner
@ReuvenLerner 7 ай бұрын
What icons do you want to retrieve?
@basketball_fan409
@basketball_fan409 3 жыл бұрын
Hi, I wanted to know what my professor may mean when he is referring to "a block" in Jupyter, thanks and loved the video!
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
"Blocks" in Python are parts of the code that are indented together, and which come after a colon. So after an "if" statement, you'll have a block. Or a "for" loop is defined in a block. However, your professor might be using the term "block" to refer to Jupyter's cells, into which you can type. I hope this helps!
@zeeza8241
@zeeza8241 2 жыл бұрын
how to get signatures or how to know what values have to go into the function.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Type annotations are a great, important, and useful tool... but they aren't used much in Jupyter notebooks, so far as I know.
@shaonhassan7056
@shaonhassan7056 2 жыл бұрын
How can i make multiple cells in jupiter notebook to put multiple inputs?
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
You can have as much (or as little) Python code as you want in each cell. So you can call the "input" function multiple times, thus getting several, distinct inputs from the user. Presumably, you would then want to assign those inputs to separate variables, which you could use later on.
@qasimabbasi.
@qasimabbasi. 2 жыл бұрын
Great and very useful information.... But sir I want to Know also how your typing speed is so much fast .I am beginner and my typing speed is so low.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
I've gotten another request to talk about my typing speed -- so I'll make a video about that soon!
@knowledgelover2736
@knowledgelover2736 3 жыл бұрын
Question. CTRL SHIFT - (CTRL _) seems to break sometimes and stop splitting cells. Do you know why that might be? I thought I was in bizzarro world until you confirmed that is the split command. I went back to J notebook and it worked. Now it has stopped working again.
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Sorry, I don't know! Maybe you are somehow accidentally getting into edit mode, rather than command mode?
@KapilMarwaha
@KapilMarwaha Жыл бұрын
Note that for this you need to be in EDIT mode and not Command Mode. See the outline in the video. it is green.​
@knowledgelover2736
@knowledgelover2736 Жыл бұрын
Thanks. I will pay attention for that
@Christopher-go5zr
@Christopher-go5zr 3 жыл бұрын
how to able toggle toolbar after disabling it , its not showing when i click on toggle toolbar option again
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
I'm not sure what to suggest; the tool bar should become visible when you choose the menu option to toggle it on and off.
@icudednow
@icudednow 3 жыл бұрын
After pressing Shift +Enter a new cell is created but that shows two cursors, one in the previous cell and the other in the current one. I'm not able to write the code in the new cell. Please help
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Hmm, it could be a few things. (1) Maybe the cell isn't a code cell any more, but is a Markdown/Raw cell? Check the cell type. If it's a code cell, you'll see "In []" on the left. (2) Maybe Jupyter is stuck? If you see "In [*]" on the left, use Kernel->interrupt to kick the kernel a bit.
@Robert-bw6jk
@Robert-bw6jk 3 жыл бұрын
Need to remember that a and b is for above and below, not by after and before.
@krishnabarfiwala5766
@krishnabarfiwala5766 3 жыл бұрын
Hi, in my windows 10 control-_ underscore didn't work. to split the codes into different lines.
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
The shortcut keys are a bit different on each platform. What you can do is press "h" in command mode, and thus see the keys you need for different functionality on Windows. I'm not sure what you should be using, but there's almost certainly something!
@krishnabarfiwala5766
@krishnabarfiwala5766 3 жыл бұрын
@@ReuvenLerner will do thanks. Also I wanted to know I have a code of few lines and for time being I want to make all into comments (#) is there any shortcut?
@nedex3843
@nedex3843 2 жыл бұрын
Is there a shortcut for the help function.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Yes! Enter 'h' in command mode.
@rchoksey3587
@rchoksey3587 3 жыл бұрын
Everyone keeps talking about command mode. What exactly is it and how do we access it to use the shortcuts?
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
You can use ESC (or click on the left side) to get into command mode. Press H to see all of the commands that are available in command mode.
@ramanverma3166
@ramanverma3166 2 жыл бұрын
Awsm vedio! Just tell me if my cursor is between " " and I want jump out of it without using my right arrow key. How will I do that what is the shortcut key...??
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
I sometimes press ESC then ENTER, just to see where my cursor is. Hope this helps, and glad you enjoyed the video!
@ramanverma3166
@ramanverma3166 2 жыл бұрын
@@ReuvenLerner I know where my cursor is but my question is how I will jump out of any symbols like " " or ("Hello") I don' t want to use my right arrow.
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
@@ramanverma3166 Ah, I'm not sure. You could try the Emacs-style keys, such as control-e to go to the end of the line. But I'm not sure on which systems those will work.
@AmeyaBurade07
@AmeyaBurade07 3 жыл бұрын
Hello I mistakenly deleted complete file how can I restore it
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Depends on how you deleted it... but if you don't have any backups and it's not in the trash bin on your computer, then I'm afraid that it's almost certainly gone.
@nitishsonkar2408
@nitishsonkar2408 2 жыл бұрын
can we run single line code in jupyter notebook
@ReuvenLerner
@ReuvenLerner 2 жыл бұрын
Sure! You can enter as many (or as few) lines as you want in a cell, and then run them.
@nitishsonkar2408
@nitishsonkar2408 2 жыл бұрын
@@ReuvenLerner Thank you so much
@RalphNgOfficial
@RalphNgOfficial 3 жыл бұрын
How to delete a selected Cell? I tried "cmd + D, D" but it doesn't works
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
First, you have to be in command mode. Either press ESC or click to the left of the cell. Once you've done that, you can use "x" to cut it.
@epikepik7082
@epikepik7082 3 жыл бұрын
Double D key
@niteshpatil8595
@niteshpatil8595 3 жыл бұрын
i AM using jupyter notebook ....when i run a cell using SHIFT + ENTER . cursor doesn't go Automatically to next cell .. i have to manually put cursor in next cell ...... how it would go automatically in next cell...??
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
On my computer (a Mac), shift+enter runs + creates a new cell, selecting it. But command+Enter runs without creating a new cell. Maybe your computer (or its keyboard) should be using a different modifier key?
@ucankaplumbaga1
@ucankaplumbaga1 3 жыл бұрын
You can try Alt + Enter
@Christopher-go5zr
@Christopher-go5zr 3 жыл бұрын
how to increase or decrease text size
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
Jupyter runs in the browser. So you can use your standard browser mechanism for increasing text size. I use Firefox on a Mac, so I use command-plus and command-minus.
@shreyadhurde4301
@shreyadhurde4301 2 жыл бұрын
Wowo
@MichaelT_123
@MichaelT_123 Жыл бұрын
Great tutorial ... for lazy people! 😉
@ReuvenLerner
@ReuvenLerner Жыл бұрын
Glad it helped!
@imanefahim8557
@imanefahim8557 3 жыл бұрын
How to delete full folders without having to go through all of the subfolders and empty them before deleting the main folder??
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
I don't think that there is a Jupyter command to do that. You would have to do that in your OS (or via a ! command in Jupyter). In Unix, you could say "rm -r DIRNAME", but be warned! That's potentially quite dangerous. I usually prefer to move everything to /tmp, just in case with "mv -v * /tmp". Then, if I make a mistake, I can undo it.
@imanefahim8557
@imanefahim8557 3 жыл бұрын
@@ReuvenLerner I m using windows... I actually have another problem don t know why is that when I use PATH = os.path.join('MP_DATA'). I was able to create a new folder and now it doesn't work. I can't understand!?
@ReuvenLerner
@ReuvenLerner 3 жыл бұрын
@@imanefahim8557 This isn't a good place for me to explain os.path.join and other such things. (I'm hoping to create some videos on the "os" package anyway, so this gives me a good push!) But it's hard for me to know what you got wrong from your description - what error message you got, what you were entering, if it was in Jupyter vs. the command line, etc. There are lots of little things to notice and take care of. But it is possible, I promise!
@imanefahim8557
@imanefahim8557 3 жыл бұрын
@@ReuvenLerner yeah I understand, I solve it actually. Thanks 😊
@imanefahim8557
@imanefahim8557 3 жыл бұрын
@@ReuvenLerner Do you have a video explaining how to move your project from Jupyter notebook to local python?
@md.shafaatjamilrokon8587
@md.shafaatjamilrokon8587 3 жыл бұрын
Thanks
Using Markdown in Jupyter
9:13
Python and Pandas with Reuven Lerner
Рет қаралды 68 М.
Jupyter Notebooks Tutorial | How to use them & tips and tricks!
18:34
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 4,3 МЛН
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 325 М.
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 91 М.
Jupyter Lab is AWESOME For Data Science
14:12
NeuralNine
Рет қаралды 73 М.
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 145 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 274 М.
Why you'll love Jupyter Notebook 7
9:13
Python and Pandas with Reuven Lerner
Рет қаралды 12 М.
5 awesome Jupyter Notebook features
5:15
Algovibes
Рет қаралды 16 М.
The six most important read_csv arguments in Pandas
16:50
Python and Pandas with Reuven Lerner
Рет қаралды 2,7 М.
Jupyter Notebook Keyboard Shortcuts with Examples for Newbies
8:12
Mr Fugu Data Science
Рет қаралды 255
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 4,6 МЛН