Commit 0a3e3121 authored by SOLIMAN Sylvain's avatar SOLIMAN Sylvain
Browse files

getting down to business

parent da236fdd
......@@ -13,7 +13,7 @@ class BiochamKernel(Kernel):
'mimetype': 'text/plain',
'file_extension': '.bc',
}
banner = check_output(['biocham', '--version']).decode('utf-8')
banner = check_output(['biocham4', '--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', '\nbiocham: ', None)
self.biocham = replwrap.REPLWrapper( 'biocham4 --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
......@@ -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) :-
\+ (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment