Turn Vim Spell On:
:set spell
You should now see miss-spelled words underlined.
Correcting Words:
Recommend Correct Spelling (while cursor is on word):
z=
Turn Vim Spell On:
:set spell
You should now see miss-spelled words underlined.
Correcting Words:
Recommend Correct Spelling (while cursor is on word):
z=
| import datashader as ds | |
| import holoviews as hv | |
| import hvplot.pandas | |
| import numpy as np | |
| import pandas as pd | |
| import panel as pn | |
| from holoviews.operation.datashader import datashade | |
| # Sample data |
| # This is a handy utility function to search your entire systems python files for search terms. Requires fzf ripgreg and fish shell | |
| function search-python-code | |
| set term $argv[1] | |
| set selected_line (rg --glob '*.py' --glob '*.ipynb' $term ~/ -n | fzf --preview 'echo {}' --preview-window=up:3:wrap) | |
| if test -n "$selected_line" | |
| set file (echo $selected_line | cut -d: -f1) | |
| set line (echo $selected_line | cut -d: -f2) | |
| nvim $file +$line | |
| end | |
| end |
pip install jupyterlab-unfoldfrom icecream import ic
ic.configureOutput(prefix='',outputFunction=print)
See my NeoVim Configuration Here:
See my Alacritty Configuration Here (With New Fonts):
Adding Fonts and Updating FontConfig:
| from icecream import ic | |
| ic("🌈") | |
| ic("------------------------") | |
| ic("Vyper Examples Panel App") | |
| # Reference: https://github.com/gruns/icecream |
| """ | |
| This class automatically formats numbers to be pretty with commas, and also automatically applies steps to number params. | |
| Is there a better way to do this? | |
| Inspiration from here: https://discourse.holoviz.org/t/return-int-value-but-show-labels-on-the-screen-insead-of-int-for-param-integer/2141/2 | |
| See also here for formatting: https://docs.bokeh.org/en/latest/docs/reference/models/formatters.html#bokeh.models.NumeralTickFormatter | |
| """ | |
| import numbers |