-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
The documentation and source for the NotebookClient indicates that the KernelManager parameter is optional and if one isn't passed in then a new one will be created. Here is the source link:
Line 452 in 2650b21
| km : KernelManager (optional) |
However, inspecting the init function it doesn't appear that this is true. Here is an MWE demonstrating that not passing in a KernelManager results in a client.kc==None situation:
from nbclient import NotebookClient
import nbformat
notebook = nbformat.reads(open('test.ipynb','r').read(), as_version=4)
# Create a NotebookClient without a KernelManager
client = NotebookClient(notebook, kernel_name="python3")
assert client.km != None
The result is:
Metadata
Metadata
Assignees
Labels
No labels
