Ipython-Config

Search for a command to run...

No comments yet. Be the first to comment.
I've slowly adding more and more lua functions into my neovim configuration, and recently I noticed a pattern for a class of functions that reach out to run shell commands that can be abstracted away. https://youtu.be/8m5ipBuopPU Telegraph.nvim Check...

Kedro can have a chatty logger. While this is super nice in production so see everything that happened during a pipeline run. This can be troublesome

In 2021 I changed the way I navigate between tmux sessions big time. Now I can create, kill, switch with ease, and generally keep work separated into
People who are quick to toss team members under a bus are not well trusted or highly thought of and it will lead to some toxic team dynamics. Building Steam While collaborating on any project there are going to be decisions made that aren't necessari...

I create this blog with one person in mind, me. There are others like me This is not completely selfish, as there are likely many others out there that think similarly to me. Everyone comes from different backgrounds and varying levels of experience...

I use my ipython terminal daily. It's my go-to way of running python most of the time. After you use it for a little bit you will probably want to set up a bit of your own configuration.
Activate your virtual environment of choice and pip install it. Any time you are running your project in a virtual environment, you will need to install ipython inside it to access those packages from ipython.
pip install ipython
You are using a virtual environment right? Virtual environments like venv or conda can save you a ton of pain down the road.
When you install ipython you start out with no config at all. Running ipython profile create will start a new profile called profile_default that contains all of the default configuration.
ipython profile create
This command will create a directory ~/.ipython/profile_default
You can run multiple configurations by naming them with ipython profile create [profile_name] This command will create a directory ~/.ipython/[profile_name]
ipython profile create my_profile
ipython --profile=my-profile
Inside the profile, there will be a startup directory ~/.ipython/profile_default/startup. Ipython will execute each of the files in this directory on startup. This is particularly handy to create custom prompts, search, or import packages automatically for certain profiles.
I've grown tired of the standard ipython prompt as it doesn't do much to give me any useful information. The default on
read more waylonwalker.com
This post creates a custom ipython prompt by creating a
~/.ipython/profile_default/startup/prompt.pyfile.
There are tons of options that are in the ipython_config.py file. My favorite is to automatically enable my favorite magic command autoreload.
Autoreload in python
read more waylonwalker.com
c.InteractiveShellApp.extensions = ['autoreload'
c.InteractiveShellApp.exec_lines = []'%autoreload 2']
c.InteractiveShellApp.exec_lines.append('print("Warning: disable autoreload in ipython_config.py to improve performance.")')