nteract/papermill

How to NOT specific kernel when run notebook ?

开放

#638 创建于 2021年10月27日

 (2 条评论) (0 个反应) (0 位负责人)Python (402 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (5,381 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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 ?

贡献者指南