When I write code in vscode jupyter notebook I get random parts of my code highlighted and I would like to turn that off:
How can I turn that off? I tried playing around in vscode setting highlight section, but only one of those is in the notebook category which is to draw a line around the cell that is being executed.
Related
I'm looking for a way to put a jupyter notebook cell in VSCode in interactive mode so that it runs the cell when its contents change without having to run it explicitly.
If there's no existing solution, is it somehow possible to automate executing the cell periodically or does the VSCode jupyter lab integration offer some scripting hooks?
Alternatively, is there a possibility to explicitly execute a cell without loosing the cell focus and its current cursor position? CTRL+Enter directly doesn't work; the tabulator key needs to be pressed four times additionally to get back to the cell.
Is there a way to enable smooth scrolling in vscode notebooks?
I'd like to use the up/down arrows to scroll through the notebook and not have it shift focus from cell to cell.
In Jupyter notebooks (webserver), it can be done by inserting the following code in the first cell:
%%javascript
Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('up');
Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('down');
Unfortunately, the same command does not work in vscode.
How do I enable it?
I look for a way to set a vertical ruler in the Jupyter extension of VSCode similar to editor.rulers in the text editor.
Thanks for any tip.
The latest VSCode notebook supports ruler (see below).
It uses the same ruler setting in editor.rulers. In fact, the code cell appears no different from a regular text editor. For instance all the keybindings defined in text editor also works in a code cell, which was not the case in the previous version.
I'm experiencing difficulties in toggling line numbers for all jupyter notebook cells in vscode. Currently, I'm manually highlighting each cell and enabling line numbers by pressing L. Is there another way for vscode to automatically start numbering each cell?
I've recently switched to VS Code for my Jupyter Notebooks. I've typed several cells and defined a few functions, now I'm at the bottom of the screen, and VS Code doesn't autoscroll when I get to the bottom of the screen, so I have to keep on clicking on the sidebar to keep typing further.
I can't seem to find a setting when I google, and every post on Jupyter and VS Code is just 101 entry-level stuff on how to get started using it.