Yes. Check out the nbdev tool:
https://www.fast.ai/posts/2022-08-25-jupyter-git.html
They mention this problem explicitly:
> For every figure, such as a plot, Jupyter includes not only the image
itself in the notebook, but also a plain text description that includes the
id (like a memory add
So, I don't know a command that'll automatically take a long string and
make it a fixed-width, but a Jupyter Notebook shortcut to quickly comment a
block of code is to type:
⌘/
command + slash will toggle comment/uncomment a block of code. This works
in both python and R flavors of the notebo