1580541011
As we all know, every programming IDE contains the shortcuts to make programming easy and reduce the execution timings. Jupyter Notebook also has some shortcuts and interesting facts that would be helpful for Python Programming.
This is made with a total of three language combinations – Ju Julia, Pyt Python and R is R programming language.
IPyhton=Pyhton 3
Kernel is used while we are working with Python in Jupyter Notebook.
Both images are for a better understanding of kernel in Jupyter Console.
Here, we will discuss the _Jupyter version 6.0.1 _
Basically, there are two Keyboard Input Modes in Jupyter notebook,
Command Mode
**Edit Mode **
1. F: find and replace
2. Ctrl-Shift-F: open the command palette
3. Ctrl-Shift-P: open the command palette
4. Enter: enter edit mode
5. P: open the command palette
6. Shift-Enter: run cell, select below
7. Ctrl-Enter: run selected cells
8. Alt-Enter: run the cell and insert below
9. Y: change cell to code
10. M: change the cell to markdown
11. R: change the cell to raw
12. 1: change the cell to heading 1
13. 2: change the cell to heading 2
14. 3: change the cell to heading 3
15. 4: change the cell to heading 4
16. 5: change the cell to heading 5
17. 6: change the cell to heading 6
18. K: select cell above
19. Up: select cell above
20. Down: select cell below
21. J: select cell below
22. Shift-K: extend selected cells above
23. Shift-Up: extend selected cells above
24. Shift-Down: extend selected cells below
25. Shift-J: extend selected cells below
26. A: insert cell above
27. B: insert cell below
28. X: cut selected cells
29. C: copy selected cells
30. Shift-V: paste cells above
31. V: paste cells below
32. Z: undo cell deletion
33. D, D: delete selected cells
34. Shift-M: merge selected cells, or current cell with cell below if only one cell is selected
35. Ctrl-S: Save and Checkpoint
36. S: Save and Checkpoint
37. L: toggle line numbers
38. O: toggle output of selected cells
39. Shift-O: toggle output scrolling of selected cells
40. H: show keyboard shortcuts
41. I, I: interrupt the kernel
42. 0,0: restart the kernel (with dialog)
43. Esc: Close the pager
44. Q: close the pager
45. Shift-L: toggles line numbers in all cells, and persist the setting
46. Shift-Space: scroll notebook up
47. Space: scroll notebook down
1. Tab: code completion or indent
2. Shift-Tab: tooltip
3. Ctrl-]: indent
4. Ctrl-[: dedent
5. Ctrl-A: select all
6. Ctrl-Z: undo
7. Ctrl-/: comment
8. Ctrl-D: delete the whole line
9. Ctrl-U: undo selection
10. Insert: toggle overwrite flag
11. Ctrl-Home: go to cell start
12. Ctrl-Up: go to cell start
13. Ctrl-End: go to cell end
14. Ctrl-Down: go to cell end
15. Ctrl-Left: go one word left
16. Ctrl-Right: go one word right
17. Ctrl-Backspace: delete word before
18. Ctrl-Delete: delete word after
19. Ctrl-Y: redo
20. Alt-U: redo selection
21. Ctrl-M: enter command mode
22. Ctrl-Shift-F: open the command palette
23. Ctrl-Shift-P: open the command palette
24. Esc: enter command mode
25. Shift-Enter: run cell, select below
26. Ctrl-Enter: run selected cells
27. Alt-Enter: run the cell and insert below
28. Ctrl-Shift-Minus: split cell at cursor
29. Ctrl-S: Save and Checkpoint
30. Down: Move cursor down
31. Up: move the cursor up
Moreover, With the help of this image user have the complete list of the shortcut commands in Jupyter Notebook,
Or You can go with H command in Command Mode.
To have a look to the command palette,
Use Ctrl + Shift + P
In this command palette, you can easily search the appropriate programming actions to apply to the code snippets.
There are many other features can be taken as the tricks of the Jupyter Notebook/Console,
In this article, we learned about the tricks and short-cuts of the Jupyter Console in details. Using different libraries and frameworks we will implement these features in one other way. It will give us a better knowledge of the IDE and its use for the end-user applications.
I hope this tutorial will surely help and you if you liked this tutorial, please consider sharing it with others.
Thank you!
#python #jupyter #tricks #programming
1619518440
Welcome to my Blog , In this article, you are going to learn the top 10 python tips and tricks.
…
#python #python hacks tricks #python learning tips #python programming tricks #python tips #python tips and tricks #python tips and tricks advanced #python tips and tricks for beginners #python tips tricks and techniques #python tutorial #tips and tricks in python #tips to learn python #top 30 python tips and tricks for beginners
1619510796
Welcome to my Blog, In this article, we will learn python lambda function, Map function, and filter function.
Lambda function in python: Lambda is a one line anonymous function and lambda takes any number of arguments but can only have one expression and python lambda syntax is
Syntax: x = lambda arguments : expression
Now i will show you some python lambda function examples:
#python #anonymous function python #filter function in python #lambda #lambda python 3 #map python #python filter #python filter lambda #python lambda #python lambda examples #python map
1619571780
March 25, 2021 Deepak@321 0 Comments
Welcome to my blog, In this article, we will learn the top 20 most useful python modules or packages and these modules every Python developer should know.
Hello everybody and welcome back so in this article I’m going to be sharing with you 20 Python modules you need to know. Now I’ve split these python modules into four different categories to make little bit easier for us and the categories are:
Near the end of the article, I also share my personal favorite Python module so make sure you stay tuned to see what that is also make sure to share with me in the comments down below your favorite Python module.
#python #packages or libraries #python 20 modules #python 20 most usefull modules #python intersting modules #top 20 python libraries #top 20 python modules #top 20 python packages
1621499652
Python Programming language makes everything easier and straightforward. Effective use of its built-in libraries can save a lot of time and help with faster submissions while doing Competitive Programming. Below are few such useful tricks that every Pythonist should have at their fingertips:
Below is the implementation to convert a given number into a list of digits:
#competitive programming #python programs #python-itertools #python-library #python-list #python-list-of-lists #python-map
1624930726
Alright is a python wrapper that helps you automate WhatsApp web using python, giving you the capability to send messages, images, video, and files to both saved and unsaved contacts without having to rescan the QR code every time.
I was looking for a way to control and automate WhatsApp web with Python; I came across some very nice libraries and wrappers implementations, including:
So I tried
pywhatkit, a well crafted to be used, but its implementations require you to open a new browser tab and scan QR code every time you send a message, no matter if it’s the same person, which was a deal-breaker for using it.
I then tried
pywhatsapp,which is based on
yowsupand require you to do some registration withyowsup
before using it of which after a bit of googling, I got scared of having my number blocked. So I went for the next option.
I then went for WebWhatsapp-Wrapper. It has some good documentation and recent commits so I had hoped it is going to work. But It didn’t for me, and after having a couple of errors, I abandoned it to look for the next alternative.
PyWhatsapp by shauryauppal, which was more of a CLI tool than a wrapper, surprisingly worked. Its approach allows you to dynamically send WhatsApp messages to unsaved contacts without rescanning QR-code every time.
So what I did is refactoring the implementation of that tool to be more of a wrapper to easily allow people to run different scripts on top of it. Instead of just using it as a tool, I then thought of sharing the codebase with people who might struggle to do this as I did.
#python #python-programming #python-tutorials #python-programming-lists #selenium #python-dev-tips #python-developers #programming #web-monetization