Jupyter Notebook (Anaconda) [shortcut key]

-----------------------------------Aspiration should be lofty and down-to-earth--------- --------------------------- Cheng_Qichen

foreword

Jupyter notebooks have two different modes for keyboard input. Edit mode allows you to enter code or text into a cell and is indicated by a green bordered cell Command mode binds the keyboard to notebook level commands and is indicated by a gray framed cell with a blue left margin grid display.

model

command line mode

(Press Esc to take effect)

F
: 查找并且替换
Ctrl-Shift-F
: 打开命令配置
Ctrl-Shift-P
: 打开命令配置
Enter
: 进入编辑模式
P
: 打开命令配置
Shift-Enter
: 运行代码块, 选择下面的代码块
Ctrl-Enter
: 运行选中的代码块
Alt-Enter
: 运行代码块并且在下面插入代码块
Y
: 把代码块变成代码
M
: 把代码块变成 Markdown
R
: 清除代码块格式
1
: 把代码块变成标题 1
2
: 把代码块变成标题 2
3
: 把代码块变成标题 3
4
: 把代码块变成标题 4
5
: 把代码块变成标题 5
6
: 把代码块变成标题 6
K
: 选择上面的代码块
上
: 选择上面的代码块
下
: 选择下面的代码块
J
: 选择下面的代码块
Shift-K
: 扩展上面选择的代码块
Shift-上
: 扩展上面选择的代码块
Shift-下
: 扩展下面选择的代码块
Shift-J
: 扩展下面选择的代码块
Ctrl-A
: select all cells
A
: 在上面插入代码块
B
: 在下面插入代码块
X
: 剪切选择的代码块
C
: 复制选择的代码块
Shift-V
: 粘贴到上面
V
: 粘贴到下面
Z
: 撤销删除
D,D
: 删除选中单元格
Shift-M
: 合并选中单元格, 如果只有一个单元格被选中
Ctrl-S
: 保存并建立检查点
S
: 保存并建立检查点
L
: 切换行号
O
: 切换选定单元格的输出
Shift-O
: 切换选中单元格的输出滚动
H
: 显示键盘快捷键
I,I
: 中断内核
0,0
: 重启内核(带确认对话框)
Ctrl-L
: autopep8 selected cell(s)
Ctrl-Shift-L
: autopep8 the whole notebook
Esc
: 关闭分页器
Q
: 关闭分页器
Shift-L
: 在所有单元格中切换行号,并保持设置
Shift-空格
: 向上滚动
空格
: 向下滚动

edit mode

(Press Enter to take effect)

Ctrl-A
: select all cells
A
: 在上面插入代码块
B
: 在下面插入代码块
X
: 剪切选择的代码块
C
: 复制选择的代码块
Shift-V
: 粘贴到上面
V
: 粘贴到下面
Z
: 撤销删除
D,D
: 删除选中单元格
Shift-M
: 合并选中单元格, 如果只有一个单元格被选中
Ctrl-S
: 保存并建立检查点
S
: 保存并建立检查点
L
: 切换行号
O
: 切换选定单元格的输出
Shift-O
: 切换选中单元格的输出滚动
H
: 显示键盘快捷键
I,I
: 中断内核
0,0
: 重启内核(带确认对话框)
Ctrl-L
: autopep8 selected cell(s)
Ctrl-Shift-L
: autopep8 the whole notebook
Esc
: 关闭分页器
Q
: 关闭分页器
Shift-L
: 在所有单元格中切换行号,并保持设置
Shift-空格
: 向上滚动
空格
: 向下滚动
Ctrl-退格
: 删除前面的单词
Ctrl-Delete
: 删除后面的单词
Ctrl-Y
: 重做
Alt-U
: 重新选择
Ctrl-M
: 进入命令行模式
Ctrl-Shift-F
: 打开命令配置
Ctrl-Shift-P
: 打开命令配置
Esc
: 进入命令行模式
Shift-Enter
: 运行代码块, 选择下面的代码块
Ctrl-Enter
: 运行选中的代码块
Alt-Enter
: 运行代码块并且在下面插入代码块
Ctrl-Shift-Minus
: split cell at cursor(s)
Ctrl-S
: 保存并建立检查点
Ctrl-L
: autopep8 selected cell(s)
Ctrl-Shift-L
: autopep8 the whole notebook
下
: 光标下移
上
: 光标上移

Summarize

Quickly find shortcut key locations

insert image description here
insert image description here

Inspirational words [copywriting]

  1. Freedom comes with responsibility, which is why most people fear it.

  2. He was the best him at the time, and I was the best me later. But the best of us is separated by a whole youth. No matter how hard you run, you can't cross your youth, so you have to extend your hand to say goodbye.

  3. No one in this world is an isolated island. Those who wash your hands in winter, fan you in summer, and leave lights for you in the middle of the night are all trying to prove that you are worthy of being loved.

  4. Everyone has their eyes open, but it does not mean that everyone is seeing the world. Many people hardly see with their own eyes. They only listen to what others say, and the world they see is always what others say.

  5. Time is greedy—sometimes, it devours all the details by itself.

  6. I dreamed of a star, an island of light, where I would be born. In the depths of its quick leisure, my life will ripen its business, like a rice field in the sun.

  7. Life is short, just a snap of the fingers. Daily repetition can easily lead to the illusion that everything is in time, and there will be time to start doing what you like.

  8. People surrounded by the city want to escape, and those outside the city want to rush in. Whether it is marriage or career, most of the desires in life are like this.

  9. The difference between giving up and letting go is: giving up is sacrificing what belongs to you, and letting go is letting go of what has never been yours.

  10. Become the person you like more first, and then meet someone who doesn't need to please.

  11. Want an evening full of wind and a setting sun. If the wheat is just ripe, the cooking smoke will just rise. The white dove flew across the water and perched on a reed. And Lu Wei just prepared a tune. So, enough for me to love this broken and muddy world.

  12. There's nothing wrong with a life that's a little more relaxed. Life doesn't go your way just because your heartstrings are tense.

  13. A man who doesn't spend time with his family can never be a real man. (A man who doesn't spend time with his family can never be a real man.)

  14. The hardships you suffer today, the losses you suffer, the responsibilities you bear, the sins you bear, and the pain you endure will all become light in the end, illuminating your path.

  15. Where footsteps cannot reach, eyes can reach; where eyes cannot reach, spirit can fly.

  16. What does the name matter? A rose is not called a rose, but it is still fragrant.

  17. I just want to be loved, and I will not take the initiative to love others. I have to try my best to control myself not to like others, because the probability of the other party liking me is very low.

  18. When you save a life, you save a world.

  19. Appearance is not just appearance, it is made up of eyes and conversation, as well as many small movements. In this way, people can be seen more accurately.

  20. There used to be a sincere love in front of me, I didn't cherish it, and I regretted it when I lost it. The most painful thing in the world is this.

Life is short, I learn Python!

insert image description here

Guess you like

Origin blog.csdn.net/CHENG15234944691/article/details/124629785