Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
Bases: IPython.utils.traitlets.HasTraits
Create a KernelSpec object by reading kernel.json
Pass the path to the directory containing kernel.json.
Bases: IPython.utils.traitlets.HasTraits
Returns a dict mapping kernel names to resource directories.
Returns a KernelSpec instance for the given kernel_name.
Raises NoSuchKernel if the given kernel name is not found.
Install a kernel spec by copying its directory.
If kernel_name is not given, the basename of source_dir will be used.
If system is True, it will attempt to install into the systemwide kernel registry. If the process does not have appropriate permissions, an OSError will be raised.
If replace is True, this will replace an existing kernel of the same name. Otherwise, if the destination already exists, an OSError will be raised.
Install the native kernel spec to the filesystem
This allows a Python 3 frontend to use a Python 2 kernel, or vice versa. The kernelspec will be written pointing to the Python executable on which this is run.
If system is True, it will attempt to install into the systemwide kernel registry. If the process does not have appropriate permissions, an OSError will be raised.
Returns a dict mapping kernel names to resource directories.
Returns a KernelSpec instance for the given kernel_name.
Raises KeyError if the given kernel name is not found.
Install a kernel spec by copying its directory.
If kernel_name is not given, the basename of source_dir will be used.
If system is True, it will attempt to install into the systemwide kernel registry. If the process does not have appropriate permissions, an OSError will be raised.
If replace is True, this will replace an existing kernel of the same name. Otherwise, if the destination already exists, an OSError will be raised.
Install the native kernel spec to the filesystem
This allows a Python 3 frontend to use a Python 2 kernel, or vice versa. The kernelspec will be written pointing to the Python executable on which this is run.
If system is True, it will attempt to install into the systemwide kernel registry. If the process does not have appropriate permissions, an OSError will be raised.