jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.69k stars 4.93k forks source link

Dotted Indent Line #2837

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi, Is there an option for dotted indent line?

Thanks

Example: https://github.com/Yggdroot/indentLine

jasongrout commented 7 years ago

No, I don't think anyone has implemented that. It would be a Codemirror thing if implemented. One codemirror post from 2013 indicated a possible way forward if someone wanted to implement such a thing: https://groups.google.com/forum/#!topic/codemirror/Jud58Iu9QsU

juhasch commented 7 years ago

If you are OK with codemirror rulers: https://codemirror.net/demo/rulers.html

you could try the ruler notebook extension: http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/ruler/readme.html

eric-wieser commented 4 years ago

Some progress seems to have been made here: https://discuss.codemirror.net/t/indentation-guides-design-advice/1119/2, but that only works for tabs not spaces

Related: https://github.com/sagemathinc/cocalc/issues/2796

eric-wieser commented 4 years ago

This looks like all that is needed:

https://github.com/wmertens/brackets-indent-guides/blob/master/main.js#L50-L106

https://github.com/wmertens/brackets-indent-guides/blob/b43c0647201cbbdfab5640276d0a04f9a0e06ee6/main.js#L131-L138

riyadhrazzaq commented 4 years ago

@eric-wieser Can you tell me how to use this- https://github.com/wmertens/brackets-indent-guides/blob/master/main.js#L50-L106 for Jupyter Notebook? I am not sure where to paste and such. Thanks.

eric-wieser commented 4 years ago

@riyadhrazzaq: No idea. My assumption was that someone who has touched the jupyter CodeMirror integration would be able to work out where to put that. Somewhere jupyter has an equivalent to the codeMirror object from that snippet.