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

Color code for Python/Julia #1

Open
albop opened this issue Jun 27, 2014 · 2 comments
Open

Color code for Python/Julia #1

albop opened this issue Jun 27, 2014 · 2 comments

Comments

@albop
Copy link
Member

albop commented Jun 27, 2014

Maybe be could agree on a color code to distinguish Python from Julia.

We could use it to alter the CSS of Julia/Python notebooks or to change the way Python/Julia code blocks are displayed in regular posts.

@sglyon
Copy link
Member

sglyon commented Jun 27, 2014

This should be doable.

I think we would need to alter these lines of the notebook plugin. They are called by the actual plugin here. Maybe we could add an optional argument at the end of the tag that allows us to specify the language. Something like this might work:

{% notebook examples.ipynb cells[start:end] langauge:julia %}

@sglyon
Copy link
Member

sglyon commented Jun 27, 2014

Looking at this page again, it does look like the python and julia are highlighted correctly (notice the pandas import at the top is correct python highlighting and the keywords for julia are correctly highlighted in the rest of the file), they are just using the same color scheme. Would you prefer that we had a different color scheme for each of them?

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