Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'pygments.styles.Gruvbox' #1

Open
phelps-matthew opened this issue Jan 5, 2020 · 7 comments
Open

Comments

@phelps-matthew
Copy link

Hi, thanks for creating this. After following the readme,I received a module not found error for pyments.styles.Gruvbox. Seems I was able to get it working by setting in ipython_config.py

c.TerminalInteractiveShell.highlighting_style = 'GruvboxDarkHard'

Is this what was intended?

As it is, it seems the gruvbox colors are darker and more contrasting than what I run in vim. I might try changing some of the pallet.

@phelps-matthew
Copy link
Author

Just to follow up - I am curious if you have a screenshot of the expected ipython scheme. The hex color codes in the style.py look good to me, but things like the red on error messages, for example, look darker than the BRIGHT_RED = '#fb4934' setting in the GruvboxBase class definition.

Here is my output
color-gruv

@farisachugthai
Copy link
Owner

Thank you for using it!

No that's not what was intended at all and I appreciate you pointing this out. After getting the repository set up, I began modifying the original colorscheme to more closely reflect a gruvbox-material repo I found. However, that wasn't mentioned in the README.

I'm currently updating this but as I've been going I noticed a few more inconsitencies that I'm still trying to iron out.

However, if you'd like to fork the repo and continue some work on it, I'd definitely encourage that and love to see any changes you make if you'd consider pushing them back to master!

@farisachugthai
Copy link
Owner

Just to follow up - I am curious if you have a screenshot of the expected ipython scheme. The hex color codes in the style.py look good to me, but things like the red on error messages, for example, look darker than the BRIGHT_RED = '#fb4934' setting in the GruvboxBase class definition.

I've been meaning to upload screenshots since the day I created this. I'll make sure I get on that.
I've also noticed that, but unfortunately I can't tell what it originates from. Frankly it seems to be a discrepency in how vim and pygments process colors because if you set the colorscheme similarly using prompt_toolkit, ipython, pygments, or xonsh they display the same.

@phelps-matthew
Copy link
Author

Thanks for the comments. I haven't gotten back to it for a few days, but here is where I have left off. I was able to modify the ipython prompt and prompt number to a desired color by making adjustments to ~/.ipython/profile_default/ipython_config.py. Particularly
c.TerminalInteractiveShell.highlighting_style_overrides

I'll fork and send your way if I ever make decent progress and have something usable.

ipython_config.txt

@farisachugthai
Copy link
Owner

Take your time I'll be here haha.

Would you be able to paste the contents of the file you linked to?

A link to a gist would also work.

@phelps-matthew
Copy link
Author

Is there a better way to embed this?

<script src="https://gist.github.com/phelps-matthew/4d8668ac1edd4ee6283f9e7a5f7aedd5.js"></script>

@farisachugthai
Copy link
Owner

farisachugthai commented Jan 10, 2020

Lol a url works just fine.

## Override highlighting format for specific tokens

c.TerminalInteractiveShell.highlighting_style_overrides = { 
Token.Prompt: "#b8bb26", 
Token.PromptNum: "#b8bb26",
}

I think this is the only part I needed anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants