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

Notebook language always set to "python" #4331

Closed
minad opened this issue Oct 2, 2013 · 7 comments
Closed

Notebook language always set to "python" #4331

minad opened this issue Oct 2, 2013 · 7 comments
Labels
Milestone

Comments

@minad
Copy link

minad commented Oct 2, 2013

The notebook language field in the pynb file is always set to "python". This is a problem if used with different language kernels e.g. https://github.com/minad/iruby

@Carreau
Copy link
Member

Carreau commented Oct 3, 2013

Yes, this is a known issue, and we want to move the language in the top level metadata field instead of per cell, in next notebook format.

in the meantime, I suggest to tag notebooks in metadata like IJulia does, so that conversion can be eased later. (I saw that you already patch codemirror to get ruby mode, so it won't be too complicated for you (be carefull btw, your $getscript( will not work if notebook run with a prefixed URL), pr are welcomed on nbconvert to detect/highlight ruby.

@ellisonbg
Copy link
Member

@minrk this is another issue related to the nbformat changes. I guess for 2.0 we just want to add the language field to notebook metadata?

@ellisonbg
Copy link
Member

This is related to issue #3813 and PR #5272. Can we close this one with that as well?

@minrk
Copy link
Member

minrk commented Mar 5, 2014

We still don't have an API for setting it. The Julia profile has to use custom.js to get it working, which is not the way it should be done, ultimately. I think we should close this when we have an official mechanism, either via kernel_info request, or with the kernel metadata we add for 3.0.

@minrk minrk modified the milestones: 3.0, 2.0 Mar 5, 2014
@minad
Copy link
Author

minad commented Mar 5, 2014

https://github.com/minad/iruby is also evolving currently. Can you tell me when the language agnostic features will be ready?

@takluyver
Copy link
Member

Probably for 3.0 this summer.

@minrk
Copy link
Member

minrk commented Nov 14, 2014

This is fixed by the kernelspec stuff

@minrk minrk closed this as completed Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants