Ciao ... †
Today, I received a book called IPython Data Science Cookbook-Recipes for Interactive Computing and Visualization, so read it right away. (I'm still reading).
IPython has a mechanism called the magic command that makes it easy to perform operations that are frequently performed on cells and rows. Some are included by default, but you can customize it by creating your own magic command.
About 60% of my work is done with Jupyter notebook, so I was happy if I could solve it in Jupyter when the code became dirty. So I wrote a format for PEP8 coding style with autopep8 from Jupyter notebook!
I put it in the directory here. https://github.com/ikegami-yukino/misc/tree/master/misc/autopep8magic
Click here for usage and execution examples https://github.com/ikegami-yukino/misc/blob/master/misc/autopep8magic/README.ipynb
After inserting autopep8 with pip etc., just insert it with $ sh install.sh
and %% autopep8
in Jupyter notebook!
Baban!
ʻA = 1 + 1 becomes ʻa = 1 + 1
.
It's a pity that I feel like copying the output result (I really want to do it in-place processing), but I hope this will make my work a little better.
Recommended Posts