nteract/papermill

How to NOT specific kernel when run notebook ?

Open

#638 opened on Oct 27, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Python (402 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (5,381 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

This is the code I run notebook from python code.

    pm.execute_notebook(
        os.path.join(self.template_path),
        jupyter_full_path,
        parameters=param_dict
    )

However, the notebook (i.e: the template) have kernel in their metadata. So I keep getting the error:

jupyter_client.kernelspec.NoSuchKernel

I just want to run the notebook in current environment same as parent program. How to bypass NoSuchKernel without specific any kernel ?

Contributor guide