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

Expose Pygments styles as options #171

Closed
wants to merge 3 commits into from
Closed

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 15, 2010

IPythonWidget already supported using various pygments styles. I just added some flags to ipythonqt, and tweaked the default style code, so that they can be set at launch:

ipythonqt --dark will run IPython with the default dark theme
ipythonqt --style will run IPython using the specific style. Anything pygments accepts will work.
e.g.
ipythonqt --style fruity

The style code also guesses whether a theme is dark or light, and chooses the right stylesheet. This can be overridden if --dark is manually specified.

If you want to use your own css stylesheet, you can pass that with --stylesheet.

No logic was added to the widgets themselves, just the ipythonqt script and a styles file that sets up the defaults.

@fperez
Copy link
Member

fperez commented Oct 22, 2010

Min, once you finish this one with the --colors changes according to our review/discussion yesterday, I think it will be ready to merge. Thanks for the great job!

@minrk
Copy link
Member Author

minrk commented Oct 22, 2010

Oops, forgot to push that the other night. It's up now.

@minrk
Copy link
Member Author

minrk commented Oct 22, 2010

Merge branch 'minrk-pygments' into trunk

Provide full support for all the Pygments styles at the console, and
properly synchronize with IPython's own Linux/LightBG color schemes.
In the long run we need to refactor our internal coloring code to only
use CSS, but for now this provides a fairly clean user experience.

Closed by e6c4eee (pull request)

@fperez
Copy link
Member

fperez commented Oct 22, 2010

Thanks a lot for this, very nice feature to have.

markvoorhies pushed a commit to markvoorhies/ipython that referenced this pull request Apr 21, 2011
Provide full support for all the Pygments styles at the console, and
properly synchronize with IPython's own Linux/LightBG color schemes.
In the long run we need to refactor our internal coloring code to only
use CSS, but for now this provides a fairly clean user experience.

Closes ipythongh-171 (pull request)
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Provide full support for all the Pygments styles at the console, and
properly synchronize with IPython's own Linux/LightBG color schemes.
In the long run we need to refactor our internal coloring code to only
use CSS, but for now this provides a fairly clean user experience.

Closes ipythongh-171 (pull request)
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants