Тёмный

My favorite Jupyter notebook shortcuts 

Python and Pandas with Reuven Lerner
Подписаться 20 тыс.
Просмотров 46 тыс.
50% 1

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: BetterDevelope...

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 123   
@knowledgelover2736
@knowledgelover2736 3 года назад
why does this video not have 10MM views?
@landrew13577
@landrew13577 2 года назад
Very useful,thanks
@saiswarna3004
@saiswarna3004 2 года назад
Thank you so much for this video! 😇
@ReuvenLerner
@ReuvenLerner 2 года назад
You are so welcome!
@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!
@niteeshkumar6664
@niteeshkumar6664 3 года назад
Nice Explanation Dear sir....
@safaaal-wajidi4606
@safaaal-wajidi4606 3 года назад
Watched the video on 2X speed. very informative. Thanks!
@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!
@zeerakkhan274
@zeerakkhan274 2 года назад
Great Great Video Buddy. Super Handy.
@ReuvenLerner
@ReuvenLerner 2 года назад
Glad it helped!
@chillwithme798
@chillwithme798 2 года назад
very useful, thanks you so much!
@ReuvenLerner
@ReuvenLerner 2 года назад
Glad you enjoyed it!
@zahraafadhel7284
@zahraafadhel7284 10 месяцев назад
How to retrieve the icons on notebook?i change themes by using jt -1 orders
@ReuvenLerner
@ReuvenLerner 10 месяцев назад
What icons do you want to retrieve?
@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.
@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.
@princeprajwal
@princeprajwal 3 года назад
That was very useful sir
@MrMallesh1
@MrMallesh1 Год назад
great , liked it !
@ReuvenLerner
@ReuvenLerner Год назад
Glad to hear it!
@abhisekhkumar4948
@abhisekhkumar4948 2 года назад
nothing, nobody made me to subscribe anyone so quick.
@ReuvenLerner
@ReuvenLerner 2 года назад
Delighted to hear it!
@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?
@jayanth6492
@jayanth6492 4 года назад
Thanks.That's very useful
@sumittripathi1331
@sumittripathi1331 3 года назад
Helpful...thanku
@akhilnama1989
@akhilnama1989 3 года назад
Thanks
@niteshpatil8595
@niteshpatil8595 4 года назад
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 4 года назад
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 4 года назад
You can try Alt + Enter
@_iamankitt_
@_iamankitt_ 3 года назад
Legend 🙌🏻
@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.
@mahadev1050
@mahadev1050 3 года назад
Amazing👍
@MichaelT_123
@MichaelT_123 Год назад
Great tutorial ... for lazy people! 😉
@ReuvenLerner
@ReuvenLerner Год назад
Glad it helped!
@fuckindia
@fuckindia 2 года назад
Yes Very Useful 100% satisfied as I didn't knew this is like tresure😍🎵
@saumyashah6622
@saumyashah6622 3 года назад
Thanks. You have been so much helpful. I was tired of continuously shifting from code to markdown and vice versa
@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 ;-)
@debatradas1597
@debatradas1597 3 года назад
Thank you so much 😇
@MikeM-uy6qp
@MikeM-uy6qp 3 месяца назад
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 3 месяца назад
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.
@sajolsajol8393
@sajolsajol8393 Год назад
great video....thank you....
@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.
@shreyadhurde4301
@shreyadhurde4301 3 года назад
Wowo
@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!
@pankajkumar-zm9sr
@pankajkumar-zm9sr 2 года назад
thanks a lot
@mohammadadrees5263
@mohammadadrees5263 2 года назад
Thank you sir. This video was very helpful for me.
@ReuvenLerner
@ReuvenLerner 2 года назад
Great to hear!
@bhaskaruprety230
@bhaskaruprety230 3 года назад
As expected that is a very useful video. Thanks
@nedex3843
@nedex3843 2 года назад
Is there a shortcut for the help function.
@ReuvenLerner
@ReuvenLerner 2 года назад
Yes! Enter 'h' 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.
@AY-ln1mk
@AY-ln1mk 2 года назад
amazing video, thank you!
@ReuvenLerner
@ReuvenLerner 2 года назад
I'm glad you enjoyed!
@DartEremite
@DartEremite 2 года назад
You blow my mind!!! Amazing!!!
@ReuvenLerner
@ReuvenLerner 2 года назад
Happy to hear you enjoyed it!
@zeeza8241
@zeeza8241 3 года назад
how to get signatures or how to know what values have to go into the function.
@ReuvenLerner
@ReuvenLerner 3 года назад
Type annotations are a great, important, and useful tool... but they aren't used much in Jupyter notebooks, so far as I know.
@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.
@pardhu1529
@pardhu1529 Год назад
Thank you soo much !
@ReuvenLerner
@ReuvenLerner Год назад
Glad it helped!
@usercsk
@usercsk 2 года назад
Excellent 👍
@ReuvenLerner
@ReuvenLerner 2 года назад
Glad it helped!
@zknolz
@zknolz 2 года назад
good job sir
@ReuvenLerner
@ReuvenLerner 2 года назад
Thanks for the kind words!
@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
@cholponzhakshylykova4099
@cholponzhakshylykova4099 2 года назад
It is indeed a very helpful video, thanks for uploading it!
@dienhoang4469
@dienhoang4469 3 года назад
Thanks you, very helpfull !
@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!
@viniciussantos6728
@viniciussantos6728 3 года назад
This is gold! Thank you for the Enter "trick"!!!
@ReuvenLerner
@ReuvenLerner 3 года назад
Delighted to know you enjoyed it!
@darkphysics4561
@darkphysics4561 3 года назад
Great video and awesome explanations!
@basketball_fan409
@basketball_fan409 4 года назад
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 4 года назад
"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!
@md.shafaatjamilrokon8587
@md.shafaatjamilrokon8587 3 года назад
Thanks
@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
@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
@ajaysharma-gw1vy
@ajaysharma-gw1vy 2 года назад
learned something new today..thanks for posting..
@ReuvenLerner
@ReuvenLerner 2 года назад
Glad to hear it!
@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.
@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
@roushanraj3009
@roushanraj3009 3 года назад
TYSM for these tips....really helped a lottttttt...
@ReuvenLerner
@ReuvenLerner 3 года назад
Excellent!
@archit617
@archit617 2 года назад
Wow what a great video, Crisp and to the point.
@ReuvenLerner
@ReuvenLerner 2 года назад
Happy to hear you liked it!
@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.
@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
@Robert-bw6jk
@Robert-bw6jk 3 года назад
Need to remember that a and b is for above and below, not by after and before.
@aguud
@aguud 3 года назад
thank you so much
@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.
@rchoksey3587
@rchoksey3587 4 года назад
Everyone keeps talking about command mode. What exactly is it and how do we access it to use the shortcuts?
@ReuvenLerner
@ReuvenLerner 4 года назад
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.
@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?
Далее
Using Markdown in Jupyter
9:13
Просмотров 71 тыс.
Офицер, я всё объясню
01:00
Просмотров 3,7 млн
Jupyter Lab is AWESOME For Data Science
14:12
Просмотров 77 тыс.
Why You Shouldn't Nest Your Code
8:30
Просмотров 2,7 млн
Method chaining in Pandas
18:17
Просмотров 2,1 тыс.
Why I stopped using Jupyter Notebooks
11:17
Просмотров 16 тыс.
How Fast Can I Fill My Inbox?
13:30
Просмотров 311 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 404 тыс.
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
5 Useful F-String Tricks In Python
10:02
Просмотров 309 тыс.