3 ms·
The ability to customize the IPython launch sequence and configure things is something I make heavy use of. For example, here is my IPython launch script [0].
by p4wnc6 10y ago
The ability to customize the IPython launch sequence and configure things is something I make heavy use of. For example, here is my IPython launch script [0].
I started out adding to the launch script so that I would have data and helper functions ever-present in my terminal when I was working to rapidly answer Stack Overflow questions, especially for often repeated tropes like group-by in pandas or some broadcasting issues in numpy.
But then I started accumulating other things, like the boilerplate for reflecting some local toy databases using SQLAlchemy, and some toy stuff with metaclasses and decorators, and kept going from there.
You should read the docs on IPython configuration -- you can even create different profiles and then launch IPython with a specific profile if you want to get different defaults in your launch environment for different use cases [1].
[0] < https://github.com/spearsem/configs/blob/master/ipython_configs/profile_default/launch.py https://github.com/spearsem/configs/blob/master/ipython_conf... >
[1] < http://ipython.readthedocs.io/en/stable/config/intro.html http://ipython.readthedocs.io/en/stable/config/intro.html >
- gknoy 10y agoWow. That's pretty cool! I had wrapped ipython in a helper that would always have the Right PYTHON_PATH, but it's neat to see just how much of ipython I have not been using. Thank you for sharing that.