|
launch anaconda command prompt (be aware of different python environments available) (or cmd command prompt but make sure '%Home%\Anaconda2\Scripts' is set in the path)(https://stackoverflow.com/questions/35134225/jupyter-from-cmd-line-in-windows)
(activate the python enviroment where you want to work in) cd to the directory to be specified
enter jupyter notebook
Then enjoy working with the jupyter notebook. Be sure to leave the command prompt window runninig.
Jupyter keyboard shortcuts
F : find and replace
Ctrl-Shift-F : open the command palette
Ctrl-Shift-P : open the command palette
Enter : enter edit mode
P : open the command palette
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell and insert below
Y : change cell to code
M : change cell to markdown
R : change cell to raw
1 : change cell to heading 1
2 : change cell to heading 2
3 : change cell to heading 3
4 : change cell to heading 4
5 : change cell to heading 5
6 : change cell to heading 6
K : select cell above
Up : select cell above
Down : select cell below
J : select cell below
Shift-K : extend selected cells above
Shift-Up : extend selected cells above
Shift-Down : extend selected cells below
Shift-J : extend selected cells below
A : insert cell above
B : insert cell below
X : cut selected cells
C : copy selected cells
Shift-V : paste cells above
V : paste cells below
Z : undo cell deletion
D,D : delete selected cells
Shift-M : merge selected cells, or current cell with cell below if only one cell is selected
Ctrl-S : Save and Checkpoint
S : Save and Checkpoint
L : toggle line numbers
O : toggle output of selected cells
Shift-O : toggle output scrolling of selected cells
H : show keyboard shortcuts
I,I : interrupt the kernel
0,0 : restart the kernel (with dialog)
Esc : close the pager
Q : close the pager
Shift-L : toggles line numbers in all cells, and persist the setting
Shift-Space : scroll notebook up
Space : scroll notebook down
Tab : code completion or indent
Shift-Tab : tooltip
Ctrl-] : indent
Ctrl-[ : dedent
Ctrl-A : select all
Ctrl-Z : undo
Ctrl-/ : comment
Ctrl-D : delete whole line
Ctrl-U : undo selection
Insert : toggle overwrite flag
Ctrl-Home : go to cell start
Ctrl-Up : go to cell start
Ctrl-End : go to cell end
Ctrl-Down : go to cell end
Ctrl-Left : go one word left
Ctrl-Right : go one word right
Ctrl-Backspace : delete word before
Ctrl-Delete : delete word after
Ctrl-Y : redo
Alt-U : redo selection
Ctrl-M : enter command mode
Ctrl-Shift-F : open the command palette
Ctrl-Shift-P : open the command palette
Esc : enter command mode
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell and insert below
Ctrl-Shift-Minus : split cell at cursor
Ctrl-S : Save and Checkpoint
Down : move cursor down
Up : move cursor up
References:
https://stackoverflow.com/questions/15680463/change-ipython-jupyter-notebook-working-directory
https://stackoverflow.com/questions/35254852/how-to-change-the-jupyter-start-up-folder
http://nbviewer.jupyter.org/github/ipython/ipython/blob/3.x/examples/Notebook/Index.ipynb
https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/
https://www.youtube.com/watch?v=esKiryoBJBI&t=9s
https://github.com/jupyter/notebook/issues/2130
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-24 10:45
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社