当前位置:网站首页>Jupyter shortcuts
Jupyter shortcuts
2022-08-01 05:20:00 【Lonely boat fishing cold river snow】
1, Shortcuts
1.1 mode switch
ESC: command mode
Enter: edit mode
Y: code(ESC)
M: MD (ESC)
R: raw (ESC)
1.2 Cell Selection
shift+mouse: Multiple choice
shift+↑/↓: Multiple choice
shift+HOME/END: Selectcurrent and all cells above/below
1.3 split/merge
shift+M: Merge current and below cells (ESC)
Ctrl+shift+‘-’: split cell
1.4 insert
A: insert cell above (ESC)
B: insert cell below (ESC)
1.5 delete
dd (double click on d): delete the selected cell (ESC)
z: restore the last deleted cell (ESC)
Ctrl+d: delete cursor line (Enter)
Ctrl+backspace/delete: delete the previous/next word
1.6 code
Ctrl+/: Comment/uncomment code
shift+L/L: Display all/the current cell code line number (ESC)
Ctrl+]/[: indent/unindent (or Select code block, Tab/shift+Tab)
Ctrl+A/Z/Y: all/undo/redo
Tab: code completion
shift+Tab: prompt
shift: ignore
1.7 Fast cursor movement
Ctrl+Home/End: Skip to beginning/end of cell
Ctrl+←/→: Skip to the left/right a prefix
1.8 run code
Ctrl+Enter: run the current cell
Alt+Enter: Run the current cell and insert a cell below
shift+Enter: Run the current cell and jump to the next cell
1.9 others
F: Find and replace (ESC)
H: shortcuts
X/C/Z/shift+V/V/S: Cut/Copy/Undo/Paste Above/Paste Below/Save (ESC)
Shift+space/space: scroll up/down
2. Magic functions in Jupyter (IPython-specific functions)
%lsmagic lists all magic functions%who? is added after a command?Check out how to use it%pwd shows Jupyter's current workspace%hist shows all the historical code that has been run in Jupyter%who displays all variables or names in the current Jupyter environment%rest removes all variables or names in the current Jupyter environment%timeit Calculate the running time of the current line of code (put it at the beginning of the line) %timeit –n10: run 10 rounds%%time Calculate the running time of the current cell code (put it at the beginning of the cell)%matplotlib style used to display plot results%load loads a local Python file or a Python file on the network%run runs a Python file locally or on the network%%writefile saves the code block to the specified filename# Jupyter run code in different languagesEnter at the beginning of the cell: %%***E.g: %%bash, %%HTML, %%python2, %%python3, %%ruby, %%perl# Due to the existence of %matplotlib inline, after inputting plt.plot(x,y_1), it is not necessary to input plt.show() again, the image will be displayed automatically
边栏推荐
- Challenge 52 days to memorize Peppa Pig (Day 01)
- 剑指 Offer 68 - II. 二叉树的最近公共祖先
- JWL-11/2-99.9A电流继电器
- 程序员代码面试指南 CD15 生成窗口最大值数组
- leetcode125 验证回文串
- MySQL Practice Summary -
- (Codeforce 757)E. Bash Plays with Functions(积性函数)
- 万字逐行解析与实现Transformer,并进行德译英实战(三)
- 56:第五章:开发admin管理服务:9:开发【文件上传到,MongoDB的GridFS中,接口】;(把文件上传到GridFS的SOP)
- PaddleX部署推理模型和GUI界面测试结果不一致的解决方法
猜你喜欢
Qt Widget 项目对qml的加载实例
Induction jian hai JustFE 2022/07/29 team, I learned the efficient development summary (years)
Robot_Framework:关键字
pytorch、tensorflow对比学习—计算图和微分机制
移动应用恶意攻击激增500% 三六零天御为APP免费构建安全屏障
typescript28 - value of enumeration type and data enumeration
可视化全链路日志追踪
pytroch、tensorflow对比学习—搭建模型范式(低阶、中阶、高阶API示例)
(Codeforce 757)E. Bash Plays with Functions(积性函数)
NDK does not contain any platforms problem solving
随机推荐
(2022 Nioke Duo School IV) D-Jobs (Easy Version) (3D prefix or)
【翻译】确保云原生通信的安全:从入口到服务网及更远的地方
A,H,K,N
LeetCode 27. 移除元素
Excel record of integer programming optimization model to solve the problem
[MySQL] 多表查询
中国的机器人增长
SL-12/2过流继电器
Selenium:表单切换
leetcode125 验证回文串
pytroch、tensorflow对比学习—搭建模型范式(低阶、中阶、高阶API示例)
MySQL Practice Summary -
请求/响应拦截器写法
2022.7.26 模拟赛
HJS-DE1/2时间继电器
可视化全链路日志追踪
ORACLE 实现另外一个用户修改包(package)
Selenium: Popup Handling
WPF项目-初步了解数据绑定 binding
(2022 Niu Ke Duo School IV) N-Particle Arts (Thinking)