Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
0a3e3121
Commit
0a3e3121
authored
Feb 16, 2016
by
SOLIMAN Sylvain
Browse files
getting down to business
parent
da236fdd
Changes
2
Hide whitespace changes
Inline
Side-by-side
biocham_kernel/kernel.py
View file @
0a3e3121
...
...
@@ -13,7 +13,7 @@ class BiochamKernel(Kernel):
'mimetype'
:
'text/plain'
,
'file_extension'
:
'.bc'
,
}
banner
=
check_output
([
'biocham'
,
'--version'
]).
decode
(
'utf-8'
)
banner
=
check_output
([
'biocham
4
'
,
'--version'
]).
decode
(
'utf-8'
)
language_version
=
banner
.
split
()[
1
]
def
__init__
(
self
,
**
kwargs
):
...
...
@@ -22,7 +22,7 @@ class BiochamKernel(Kernel):
def
_start_biocham
(
self
):
self
.
biocham
=
replwrap
.
REPLWrapper
(
'biocham'
,
'
\n
biocham: '
,
None
)
self
.
biocham
=
replwrap
.
REPLWrapper
(
'biocham
4 --jupyter
'
,
'biocham: '
,
None
)
def
do_execute
(
self
,
code
,
silent
,
store_history
=
True
,
...
...
@@ -39,3 +39,5 @@ class BiochamKernel(Kernel):
'payload'
:
[],
'user_expressions'
:
{},
}
# TODO: do_complete
commandline.pl
View file @
0a3e3121
...
...
@@ -63,6 +63,13 @@ option('', '--generate-doc', Arg, Arg) :-
option
(
''
,
'--version'
,
Arg
,
Arg
)
:-
quit
.
option
(
''
,
'--jupyter'
,
Arg
,
Arg
)
:-
set_counter
(
plot_png
,
0
),
set_counter
(
graph_svg
,
0
),
set_plot_driver
(
gnu_plot_png
),
set_image_viewer_driver
(
img_tag
),
set_draw_graph_driver
(
graph_svg
).
add_files
(
Files
)
:-
\
+
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment