import nbformat
from nbconvert.preprocessors import ExecutePreprocessor

with open(sys.argv[1]) as f:
    nb = nbformat.read(f, as_version=4)

ep = ExecutePreprocessor(timeout=600, kernel_name='python3')

ep.preprocess(nb, {'metadata': {'path': 'tests/'}})
import nbformat
import sys
from nbconvert.preprocessors import ExecutePreprocessor

with open(sys.argv[1]) as f:
    nb = nbformat.read(f, as_version=4)

ep = ExecutePreprocessor(timeout=600, kernel_name='python3')

ep.preprocess(nb, {'metadata': {'path': 'tests/'}})
fix typo