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 ?

貢獻者指南