Jupyter#
Collapsing content#
Use the left and right arrows to hide sections of a long document.
LSP#
See the pylsp
server (also known as python-lsp/python-lsp-server) (listed in Language servers — Language Server Protocol integration for Jupyter[Lab]). In practice this tool is annoying; it installs a bunch of linters which just add a ton of noise.
It also requires less than JupyterLab 4.0, which has useful features. Ironically, the release jupyterlab-lsp 4.2.0
doesn’t support JupyterLab 4.0 (despite the numbering). However, this has recently changed (with at least jupyterlab-lsp 5.1.0
).
For JupyterLab 4.0+ LSP support, see Language Server Protocol support — JupyterLab 4.3.0 documentation. In settings this is labeled “Experimental” suggesting it may be worth waiting for.
ANSI#
See Formatting code outputs / ANSI Outputs. You can use this not only with jq -C
(i.e. jq --color-output
), but likely with git
and tree
and bat
. You don’t even need to force color output. You could inspect container.log
files with bash - Display file with ANSI colors.
Configuration#
Save JupyterLab configuration in dotfiles. One super awesome setting is Open linked .md
files as notebooks in Jupyter Lab · mwouts/jupytext § this comment. Go to Settings, find the “Document Manager” section, and add this.