Is it possible to have autocomplete in a notebook in Google Colab?

Viewed 41341

By autocomplete I mean having something like Intellisense in VS Code by which I can see available functions or members in a particular library?

7 Answers

Yup. Press control space (or command space, on a Mac) and autocomplete suggestions will appear.

enter image description here

If you navigate to Settings... and then uncheck "Automatically trigger code completions":

enter image description here enter image description here

...you'll then be able to use tab-to-complete like in a conventional Jupyter notebook. From the Keyboard Shortcuts page of the Colaboratory app:

enter image description here

I'm on a macbook pro, Option+ Esc performs autocomplete for me.

Ctrl+Space (works on Mac as well), but I have to run the cell once:

enter image description here

Press Ctrl + space for Mac, as well as for Windows.
Works like magic, see the image below:

enter image description here

On Windows it work the same way as with Ctrl+Space if you press Tab. Not sure about Mac, however.

you can check for what keyboard shortcut works for you in the settings in the keyboard shortcuts inside of the tools tab.

Related