Skip to content
Snippets Groups Projects
Commit 6321e822 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Language name for nbparameterise is now 'python'

parent 4f508738
No related branches found
No related tags found
1 merge request!480Use publicly released nbparameterise
......@@ -407,7 +407,7 @@ def add_args_from_nb(nb, parser, cvar=None, no_required=False):
:param bool no_required: If True, none of the added options are required.
"""
parser.description = make_epilog(nb)
parms = extract_parameters(nb, lang='python3')
parms = extract_parameters(nb, lang='python')
for p in parms:
......@@ -676,7 +676,7 @@ def concurrent_run(temp_path, nb, nbname, args, cparm=None, cval=None,
suffix = flatten_list(cval)
# first convert the notebook
parms = extract_parameters(nb, lang='python3')
parms = extract_parameters(nb, lang='python')
if has_parm(parms, "cluster_profile"):
cluster_profile = f"{args['cluster_profile']}_{suffix}"
......@@ -686,7 +686,7 @@ def concurrent_run(temp_path, nb, nbname, args, cparm=None, cval=None,
params = parameter_values(parms, **args)
params = parameter_values(params, cluster_profile=cluster_profile)
new_nb = replace_definitions(nb, params, execute=False, lang='python3')
new_nb = replace_definitions(nb, params, execute=False, lang='python')
if not show_title:
first_markdown_cell(new_nb).source = ''
set_figure_format(new_nb, args["vector_figs"])
......@@ -843,7 +843,7 @@ def run():
if ext_func is not None:
extend_params(nb, ext_func)
parms = extract_parameters(nb, lang='python3')
parms = extract_parameters(nb, lang='python')
title, author, version = extract_title_author_version(nb)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment