Hello Everyone! I am documenting some of the useful shortcuts & commands I learnt. I will be adding more. Feel free to add anything important I have missed from class.
Shift+Enter (run cell, select below)
ALT+Enter (run cell, insert below)
o (to hide output of any cell)
SHIFT + TAB (documentation of python command)
shift + ctrl + minus(-) (split cell at cursor)
shift + M (merge selected cells)
1 (to heading 1)
2,3,4,5,6 (to heading 2,3,4,5,6)
! ( to use terminal)
! head {Python Object} (Using python objects within terminal commands)
Did anyone find some way to swap code chunks? There have been a few times where I wanted to swap chunks, e.g. moving one chunk with import packages above other. I had to use copy-paste
Gang, note that keyboard shortcuts are case sensitive. So better to use lowercase letters when telling about keyboard shortcuts that don’t use the shift key, otherwise it can get confusing!
Is it possible to access to two Jupiter notebooks in two AWS instances. I played around with port numbers. Didn’t work out. Please share if someone knows how to do it.
Each instance will have a different IP address. Are checking the notebooks are running at the separate IPs at port 8888?
You can use a terminal multiplexer like tmux to run two different notebook instances on the same server. Juypter Notebooks will put themselves on port 8888 and if that port is being used, it puts itself on port 8889 usually.
Does anyone know how to hide a cell in the notebook? I’d like to prevent code, but still show the results in the output document.
I looked up solutions online but there is no simple way to do it. I thought there was something similar to echo = F in R.
Thanks!