Commenting Code Blocks, Ipython Notebook

Asked

Viewed 2,354 times

1

It is very annoying to have to comment line by line, and I want to join a powerful editor (like Vim) to IP-Notebook.

But there must be a way to comment on code blocks in a simple way.

My versions:

  • IP-Notebook: 1.1.0
  • Chrome: 31.0.1650.63
  • Although I figured out how to do what I wanted, I still want to edit in Vim, within ypnb. It will be possible?

1 answer

2

To comment blocks of code, just select the lines of code you want to comment (you don’t need to select them completely, that is, until the end of the line) and press CTRL+/.

The same is used to decode a block of code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.