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 #836

Closed
wants to merge 84 commits into from
Closed

Expose pygments styles #836

wants to merge 84 commits into from

Conversation

t-makaro
Copy link
Contributor

@t-makaro t-makaro commented Jul 9, 2018

closes #832

Some discussion is needed, and I'm super willing to make changes to get this PR accepted. This will let html, and latex exporting to use any pygments style, which means one can set the colors that are used to highlight code!

I also have code to let the pygments style be automatically selected from the language of the notebook. This would mean that a kernel could define a style and use the pygments plugin system allowing nbconvert to automatically select the right color scheme for the language to match what the notebook looks like. Sort of like how the appropriate lexer is already automatically chosen based on notebook metadata. That should probably be left to a future PR though.

Lukasz Mitusinski and others added 14 commits March 16, 2018 13:17
setup_preprocessor is a contextmanager that handles setting and cleaning
up attributes needed by the rest of the execution logic (specifically
self.nb, self.km, self.kc).

start_new_kernel was previously a callback function and is now a
separate method used inside setup_preprocessor.

This also introduces a dynamic default for the `kernel_name` traitlet
that checks if self.nb is defined to see if it has a kernel name, and
otherwise will raise an AttributeError (since that means it is being
relied upon without any way to know which kernel is to be used.
moved _display_id_map help inside the declaration instead of comment

unified named imports from traitlets
@t-makaro
Copy link
Contributor Author

t-makaro commented Jul 9, 2018

JuliaLang/IJulia.jl#105

@t-makaro
Copy link
Contributor Author

t-makaro commented Jul 9, 2018

I don't know why. The build only failed on python 3.3, and it did so before getting to any tests. @mpacer @takluyver

@takluyver
Copy link
Member

Looks like it's getting a version of setuptools that doesn't support Python 3.3. There are probably ways to work around that, but I'd say we can just drop support for Python 3.3 as well.

rlabbe and others added 3 commits July 14, 2018 12:32
Changed 'ouptut' to 'output'.
Per GitHub issue #837, document the '--inplace' command line
flag.
takluyver and others added 4 commits July 18, 2018 20:49
Drop support for python 3.3
I noticed that absolute paths do not work since a URL is constructed from the directory, but this was not clear from the documentation. If someone has a better wording, I'll be glad to change it. 

Also, this should updated in https://nbconvert.readthedocs.io/en/latest/config_options.html but the 'Edit on Github' button is broken.
@t-makaro t-makaro changed the title [WIP] Expose pygments styles Expose pygments styles Jul 29, 2018
MSeal and others added 26 commits September 4, 2018 10:19
Added long description to setuptools for new pypi page
Updated release instructions based on 5.4 release walk-through
DOC: Add missing language specification to code-block
@t-makaro
Copy link
Contributor Author

Crap. Sorry. I tried rebasing, because I could not build the docs because I didn't have #872.

@t-makaro t-makaro closed this Sep 23, 2018
@t-makaro t-makaro mentioned this pull request Sep 23, 2018
4 tasks
@MSeal MSeal added this to the no action milestone Sep 8, 2020
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.

[feature request] Add option/settings to change the pygments style