Python: Quick Time-Saving Tip of the Day
Using Multiple Cursors to Make Edits in Jupyter Notebook
One of my favorite things about PyCharm is the ability to repeat edits with multiple cursor locations. This is extremely useful when I want to quickly change the name of something in multiple places, but for whatever reason don’t want to use the built-in ‘refactoring’ function in PyCharm. Until today, I had been pining for similar functionality in Jupyter notebooks, but just realized that the feature is already there!
Say I have a dataframe that I want to plot several columns of, and I’ve already setup the plot of the first column the way I want.

I could retype each individual line, or like any good (lazy?) programmer, I could copy and paste.
Even better, after copying and pasting, if I ‘CTRL + mouse click’ I can make multiple selections and change the column name in one quick edit in the Jupyter Notebook. Great time saver!

