Custom Ipython Prompt
I’ve grown tired of the standard ipython prompt as it doesn’t do much to give
me any useful information. The default one gives out a line number that only
seems to add anxiety as I am working on a simple problem and see that number
grow to several hundred. I start to question my ability 🤦♂️.
Configuration # [1]
If you already have an ipython config you can move on otherwise check out this
post on creating an ipython config.
Ipython-Config [2]
The Dream Prompt # [3]
I want something similar to the starship prompt I am using in the
shell. I want to be able to quickly see my python version,
environment name, and git [4] branch.
- python version
- active environment
- git branch
[5]
This is my zsh prompt I am using for inspiration
Basic Prompt # [6]
This is mostly boilerplate that I found from various google
searches, but this gets me a basic green chevron as my prompt.
from IPython.terminal.prompts import Prompts, Token
class MyPrompt(Prompts):
def in_prompt_tokens(self...