Skip to content

Commit

Permalink
removed with block
Browse files Browse the repository at this point in the history
  • Loading branch information
kangwonlee committed Dec 24, 2017
1 parent 389d265 commit a5ee9f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test_nbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ def test_sample_ipynb(self):
def _exec_notebook(path):
# http://nbconvert.readthedocs.io/en/latest/execute_api.html
# ijstokes et al, Command line execution of a jupyter notebook fails in default Anaconda 4.1, https://github.com/Anaconda-Platform/nb_conda_kernels/issues/34
with tempfile.NamedTemporaryFile(suffix=".ipynb") as fout:
args = ["jupyter", "nbconvert", "--to", "notebook", "--execute",
"--ExecutePreprocessor.timeout=1000",
"--ExecutePreprocessor.kernel_name=python", path]
subprocess.check_call(args)
args = ["jupyter", "nbconvert", "--to", "notebook", "--execute",
"--ExecutePreprocessor.timeout=1000",
"--ExecutePreprocessor.kernel_name=python", path]
subprocess.check_call(args)


if __name__ == '__main__':
Expand Down

0 comments on commit a5ee9f0

Please sign in to comment.