-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d595537
commit 152e42e
Showing
3 changed files
with
79 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
module.exports = | ||
languageMappings: | ||
title: "Language Mappings" | ||
description: 'Some packages may change the name of the grammar for | ||
a language (e.g. "Python" -> "Python Django"). That | ||
leaves Hydrogen unable to figure out what kernel to | ||
use for your code. | ||
This field should be valid JSON mapping a nonstandard | ||
language name to a standard one, e.g. | ||
```{"Python Django": "python", "Ruby (Rails)": "ruby"}```' | ||
type: 'string' | ||
default: '{}' | ||
grammarToKernel: | ||
description: 'JSON mappings between specific kernel and a | ||
language/grammar. This value is updated automatically | ||
by the "switch kernel" command. If you switch from | ||
python2 to python3, python3 will be used the next time | ||
you open a Python file. You probably shouldn\'t | ||
change this by hand.' | ||
type: 'string' | ||
default: '{}' | ||
kernelspec: | ||
title: "Kernel Spec" | ||
description: 'This field is autogenerated on every launch in up-to-date environments, | ||
also you can regenerate this with hydrogen:update-kernels command. | ||
``` | ||
Kernel specs as reported by: | ||
$ jupyter kernelspecs list --json | ||
or | ||
$ ipython kernelspecs list --json | ||
``` | ||
If this commands fails in your environment you can use this field to specify your kernels, like: | ||
``` | ||
{ | ||
"kernelspecs": { | ||
"ijavascript": { | ||
"spec": { | ||
"display_name": "IJavascript", | ||
"env": {}, | ||
"argv": [ | ||
"node", | ||
"/home/user/node_modules/ijavascript/lib/kernel.js", | ||
"--protocol=5.0", | ||
"{connection_file}" | ||
], | ||
"language": "javascript" | ||
}, | ||
"resources_dir": "/home/user/node_modules/ijavascript/images" | ||
} | ||
} | ||
} | ||
```' | ||
type: 'string' | ||
default: '{}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters