Skip to content

Commit

Permalink
time consuming
Browse files Browse the repository at this point in the history
  • Loading branch information
Baohong Zhang committed Feb 24, 2024
1 parent eaca8a0 commit 2a524cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VIPInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ def CLI(data):
f.write(script)
ppr.pprint(subprocess.run('which Rscript',capture_output=True,shell=True).stdout.decode('utf-8'))
ppr.pprint(subprocess.run('which pandoc',capture_output=True,shell=True).stdout.decode('utf-8'))
ppr.pprint(subprocess.run("Rscript -e 'reticulate::py_config()'",capture_output=True,shell=True).stdout.decode('utf-8'))
# (time consuming) ppr.pprint(subprocess.run("Rscript -e 'reticulate::py_config()'",capture_output=True,shell=True).stdout.decode('utf-8'))
res = subprocess.run('jupytext --to notebook --output - %s | jupyter nbconvert --ExecutePreprocessor.timeout=1800 --to html --execute --stdin --stdout'%strScript,capture_output=True,shell=True)
html = res.stdout.decode('utf-8')
h,s,e = html.partition('<div class="cell border-box-sizing code_cell rendered">')
Expand Down

0 comments on commit 2a524cd

Please sign in to comment.