Skip to content

Commit f5e3d88

Browse files
committed
Fixes to wrapper kernel docs
1 parent 7ade9f3 commit f5e3d88

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/wrapperkernels.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ following methods and attributes:
3636
This should contain the key ``mimetype`` with the mimetype of code in the
3737
target language (e.g. ``'text/x-python'``), the ``name`` of the language
3838
being implemented (e.g. ``'python'``), and ``file_extension`` (e.g.
39-
``'py'``).
39+
``'.py'``).
4040
It may also contain keys ``codemirror_mode`` and ``pygments_lexer`` if they
4141
need to differ from :attr:`language`.
4242

@@ -81,7 +81,11 @@ Example
8181
implementation_version = '1.0'
8282
language = 'no-op'
8383
language_version = '0.1'
84-
language_info = {'mimetype': 'text/plain'}
84+
language_info = {
85+
'name': 'Any text',
86+
'mimetype': 'text/plain',
87+
'file_extension': '.txt',
88+
}
8589
banner = "Echo kernel - as useful as a parrot"
8690

8791
def do_execute(self, code, silent, store_history=True, user_expressions=None,

0 commit comments

Comments
 (0)