On Tue, Nov 7, 2017 at 3:20 AM, Edward K. Ream <[email protected]> wrote:
...
> Presumably there is a way to change client_class to:
>
> client_class = DottedObjectName('jupyter_client.KernelClient')
>
> but I don't know how to do this.
>
I'm wondering whether some **kwargs args may be used to do this. This
would be done implicitly via the traitlets mechanism.
Reading the jupyter code is a horror show. *Everything *is done implicitly.
Otoh, there may be an easy way to do what we want, if we can read between
the lines...
For example, the KernelManager class contains:
def _client_factory_default(self):
return import_item(self.client_class)
Here, import_item is defined in ipython_genutils/importstring.py.
Its docstring is:
"""Import and return ``bar`` given the string ``foo.bar``.
Calling ``bar = import_item("foo.bar")`` is the functional equivalent of
executing the code ``from foo import bar``.
Parameters
----------
name : string
The fully qualified name of the module/package being imported.
Returns
-------
mod : module object
The module that was imported.
"""
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.