Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab: edit two lines at the same time

In my local jupyter-notebook i can edit mutliple lines of code at the same time: simply press ctrl + click at the respective lines. In google Colab that does not seem to work. Is this feature available somehow?

I work with Firefox on a Ubuntu 16.04.

like image 287
Sebastiano1991 Avatar asked Feb 04 '20 08:02

Sebastiano1991


People also ask

Can you edit Google colab at the same time?

Colab notebooks can be shared with other users and opened by multiple users at a time. If one person makes a change, the others will be able to see the change after a short delay. However, if two people edit the document at the same time, one person's changes must be discarded upon refreshing.

How do you edit multiple lines in a Jupyter notebook?

Jupyter Notebook - Big Data Visualization Tool Multiline editing is one of the features which is not available in IPython terminal. In order to enter more than one statements in a single input cell, press ctrl+enter after the first line. Subsequently, just pressing enter will go on adding new line in the same cell.

How do I change all occurrences of a word in Colab?

Google colab uses the same keys short-cuts of microsoft VS, just use Ctrl+D to add to the selection the next occurrence. Use instead Ctrl+Shift+L to select all occurrence. Once you selected the occurrences you can edit them by just typing the new name.

How do you select multiple cells in Colab?

Consecutive cells can be selected by "lasso selection" by dragging from outside one cell and through the group. Non-adjacent cells can be selected concurrently by clicking one and then holding down Ctrl while clicking another. Similarly, using Shift instead of Ctrl will select all intermediate cells.


1 Answers

It's available. Instead of Ctrl + Click, please use

  • Alt + Click for Windows
  • Option + Click for MacOS

To select all occurrences of the current selection, please use

  • Ctrl + Shift + L for Windows
  • Command + Shift + L for MacOS
like image 180
korakot Avatar answered Sep 20 '22 13:09

korakot