@staticmethod
def _run_notebook(filename):
    execute_preprocessor = ExecutePreprocessor(timeout=TIMEOUT, kernel_name=JUPYTER_KERNEL)
    file_path = os.path.dirname(os.path.abspath(filename))
    with open(filename) as file_:
        notebook = nbformat.read(file_, as_version=4)
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore', category=DeprecationWarning)
        execute_preprocessor.preprocess(notebook, {'metadata': {'path': file_path}})
@staticmethod
def _run_notebook(filename):
    execute_preprocessor = ExecutePreprocessor(timeout=TIMEOUT, kernel_name=JUPYTER_KERNEL)
    file_path = os.path.dirname(os.path.abspath(filename))
    with open(filename) as file_:
        notebook = nbformat.read(file_, as_version=4)
    with warnings.catch_warnings():
        warnings.filterwarnings('ignore', category=DeprecationWarning)
        execute_preprocessor.preprocess(notebook, {'metadata': {'path': file_path}})