Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turned off JupyterLab's "auto encapsulation"

I've somehow turned off the feature in JupyterLab where when I highlight something say

1,2

And press the bracket (, {, [ it would automatically add the second bracket at the other end. I don't know what this feature is called, but it's so helpful and I'm crazy annoyed it stopped working.

Restarted already, it still persists. Can someone help me turn it back on?

like image 602
Olli Avatar asked Jan 22 '26 14:01

Olli


2 Answers

The changelog of JupyterLab for 3.1 version, specifically the user-facing changes section, describes that:

The closing bracket is no longer automatically added by default; the old behaviour can be re-enabled from the menu bar (Settings -> Auto Close Brackets) or from the Advanced Settings Editor.

enter image description here

This is the seventh option in default JupyterLab 3.1 installations, and second from the bottom on the picture above. For more discussion and to provide constructive feedback please go to jupyterlab issue #5741.

like image 200
krassowski Avatar answered Jan 25 '26 11:01

krassowski


For JupyterLab 3.1 onwards, the auto close brackets feature is not the default anymore.

Fortunately this could be easily toggled from the UI, see picture below:

enter image description here

like image 30
Adrian Ang Avatar answered Jan 25 '26 10:01

Adrian Ang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!