These features assist in writing codes complying with PEP8. These features are available in Spyder.
Update 1: What I want is a vertical margin/marker line as shown in modified screenshot of the spyder. The other feature I am looking forward to is identification of location of i-bar. These two features are marked in the attached picture.
A similar solution is also okay. Modified screenshot of spyder
update 2: I did not find anything like this on the internet.
update 3: Jupyter Lab has a ruler setting (Sept 2020), details provided in the answer
You can enable row numbers in all code cells by pressing Shift + L while no cell is active. If you cannot remember these hotkeys, open the command palette by pressing Control + Shift + P and search for 'line numbers'.
In more details CTRL - M (or ESC ) bring you to command mode, then pressing the L keys should toggle the visibility of current cell line numbers. In more recent notebook versions Shift-L should toggle for all cells.
Use the following code to emphasize text: Bold text: __string__ or **string** Italic text: _string_ or *string*
Use the number sign (#) followed by a blank space for notebook titles and section headings: # for titles. ## for major headings. ### for subheadings.
This is Sept 2020. Version 2.2.8 of Jupyter Lab is available.
Answer 1: It provides a facility of a ruler in the Settings > Advanced Settings Editor. Answer by https://stackoverflow.com/a/55035981/6646912 gives general guidance on how to edit the settings. In particular, the following preferences can be included:
{
"codeCellConfig": {
"rulers": [80],
"wordWrapColumn": 80,
},
}
Answer 2: Location of i-bar is also available in Jupyter Lab
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With