-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: IPython Console adapts to Spyder color scheme #3908
Conversation
@ccordoba12 This PR still have lots of style corrections to be made so please ignore them for now, I will correct them when the content is approved. I have 2 main problems here (a big and a small one):
Apart from this I think everything is working. It took me a lot to figure out a way to set the syntax but I hope you like it :) |
This is so nice!! Thanks a lot for working on this! For now, one important comment: you did this PR against master and not 3.x, so you prefer this to go for Spyder 4? |
About your problems:
|
Another important thing to consider is what happens with colors for tracebacks. Did you try them with different schemes @mariacamilaremolinagutierrez? |
@ccordoba12 Oh I'm sorry, I have no preference, I just did the PR to master because I thought new features went there. But if it is sooner for me is better :) About the comments:
Do you know where in spyder is this blue color set? So I can put it in the style_sheet of the console. And |
There are two types of changes:
So if you want to see this released sooner, you need to redo your PR against 3.x :-) About the comments:
I think this work is going to be delayed to 3.2 because there are still several things we need to look at and the feature freeze for 3.1 is almost here :-) But great job at making this work! |
About the branch, this latest commit will be the last in this PR. I will re do it but checking out from 3.x now. About the comments:
|
|
syntax_path = pygments.__file__.rpartition('/')[0] + '/styles/' | ||
syntax_name = 'spyder' | ||
syntax_filename = syntax_path + syntax_name + '.py' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
styles =
{
'Name.Class': [definition_font_style, definition_font_weight, definition_color,
}
create_style_strng(dic):
return str
with open(): {
f.write(str)
}
Fixes #916