Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick Docstrings in Colaboratory

I'm starting to play with Colaboratory but I've noticed that shift-tab doesn't pop up Docstrings for functions as it does in Jupyter.

Is this functionality absent or just accessed some other way?

like image 912
Dan Avatar asked Mar 01 '18 05:03

Dan


2 Answers

Shift-tab dedents. To see contextual help inline, hit tab after an open parens, e.g.,

import os
os.open(

Or, execute the cell with a trailing ? and help will open in the bottom pane, e.g,.

import os
os.open?
like image 86
Bob Smith Avatar answered Oct 03 '22 23:10

Bob Smith


Ctrl + Space helped me. Both for docstring and autocomplete.

like image 34
jwegas Avatar answered Oct 03 '22 23:10

jwegas