Skip to content

Commit bbe9c17

Browse files
authored
docs: add ipython instructions to readme
1 parent 65113e6 commit bbe9c17

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ They can also be accessed by directly importing them:
7979
from catppuccin.extras.pygments import MacchiatoStyle
8080
```
8181

82+
### IPython
83+
84+
A minimal configuration:
85+
86+
```python
87+
from pygments.styles import get_style_by_name
88+
89+
c = get_config()
90+
c.TerminalInteractiveShell.highlighting_style = get_style_by_name("catppuccin-mocha")
91+
```
92+
93+
Putting this into your [IPython configuration](https://ipython.readthedocs.io/en/stable/config/intro.html) and ensuring `catppuccin[pygments]` is installed in the same environment will give you Catppuccin Mocha syntax highlighting in the REPL. See [here](https://github.com/backwardspy/dots/blob/f6991570d6691212e27e266517656192f910ccbf/dot_config/ipython/profile_default/ipython_config.py) for a more complete example configuration.
94+
8295
## Contribution
8396

8497
If you are looking to contribute, please read through our

0 commit comments

Comments
 (0)