Closed psteinb closed 4 years ago
That's what happens with me as well after I turned on polymode
. What I do is just turn on display-line-numbers-mode
in when I move out of the input cells. There is still some inconsistencies regarding line breaks in input cells when I move between these different cells but it's way less annoying and something I can live with.
Thanks @yatsky, you beat me to this comment - polymode works by creating multiple indirect buffers, one for each different major mode, which means you have to enable line numbering for each indirect buffer. That means, if you have a notebook with python and markdown cells you would need to go to apython cell, to a markdown cell, and anywhere outside the cell and enable line numbering in each place.
I would recommend turning off display-line-numbers-mode
generally.
Hi, thank you for providing ein to the emacs community. I really enjoy having a decent editor under my fingers while working with notebooks. Keep up the good work. I have a small question. I am using ein based on this configuration:
There is one aspect that irritates me. Depending on whether I am in an input cell: My line numbers are visible. As soon as the curser moves through an output cell, the line numbers are gone: This makes the notebook move constantly from left to right and back. I checked the
ein-poly.el
file for help, but couldn't find anything straight away. I'd appreciate if anyone could lend a hand and suggest a solution or at least help me find one. I am usingGNU Emacs 26.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.8) of 2019-04-30
onfc30
.Thanks