Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Block indent jupyter notebook

Does anyone know how to get a command shortcut to work for block indenting and un-indenting in Jupyter notebooks? 
 In the Jupiter notebook command group there is a command “automatically indent selection”. When I put in a command mode control-/ for that command the notebook does block commenting. 
 
 I don’t see any other command that refers to indenting. 
 I can’t seem to figure this

like image 810
wiseass Avatar asked Feb 14 '19 23:02

wiseass


People also ask

How do I block indent in Jupyter Notebook?

In JupyterLab, ctrl+[ and ctrl+] work for indentation/deindentation.

How do you indent in Jupyter markdown?

Use the greater than sign (>) followed by a space, for example: > Text that will be indented when the Markdown is rendered. Any subsequent text is indented until the next carriage return.

How do you do a Unindent code?

The "Unindent" command corresponds to the Unindent selection entry in the Advanced sub menu of the Edit Menu . It may be called by using the keyboard shortcut "Shift+Tab". Its action is to remove the tabulation in front of each selected line if there is such a character.


1 Answers

it's

Tab

If you want to unindent, then

Shift + Tab

You need to have selected more rows or it's intellisense...

like image 193
Daniel Malachov Avatar answered Oct 17 '22 03:10

Daniel Malachov