@@ -28,16 +28,13 @@ def make_ipkernel_cmd(mod='ipykernel_launcher', executable=None, extra_arguments
2828 ----------
2929 mod : str, optional (default 'ipykernel')
3030 A string of an IPython module whose __main__ starts an IPython kernel
31-
3231 executable : str, optional (default sys.executable)
3332 The Python executable to use for the kernel process.
34-
3533 extra_arguments : list, optional
3634 A list of extra arguments to pass when executing the launch code.
3735
3836 Returns
3937 -------
40-
4138 A Popen command list
4239 """
4340 if executable is None :
@@ -61,10 +58,10 @@ def get_kernel_dict(extra_arguments=None):
6158
6259def write_kernel_spec (path = None , overrides = None , extra_arguments = None ):
6360 """Write a kernel spec directory to `path`
64-
61+
6562 If `path` is not specified, a temporary directory is created.
6663 If `overrides` is given, the kernelspec JSON is updated before writing.
67-
64+
6865 The path to the kernelspec is always returned.
6966 """
7067 if path is None :
@@ -92,33 +89,31 @@ def write_kernel_spec(path=None, overrides=None, extra_arguments=None):
9289def install (kernel_spec_manager = None , user = False , kernel_name = KERNEL_NAME , display_name = None ,
9390 prefix = None , profile = None , env = None ):
9491 """Install the IPython kernelspec for Jupyter
95-
92+
9693 Parameters
9794 ----------
98-
99- kernel_spec_manager: KernelSpecManager [optional]
95+ kernel_spec_manager : KernelSpecManager [optional]
10096 A KernelSpecManager to use for installation.
10197 If none provided, a default instance will be created.
102- user: bool [default: False]
98+ user : bool [default: False]
10399 Whether to do a user-only install, or system-wide.
104- kernel_name: str, optional
100+ kernel_name : str, optional
105101 Specify a name for the kernelspec.
106102 This is needed for having multiple IPython kernels for different environments.
107- display_name: str, optional
103+ display_name : str, optional
108104 Specify the display name for the kernelspec
109- profile: str, optional
105+ profile : str, optional
110106 Specify a custom profile to be loaded by the kernel.
111- prefix: str, optional
107+ prefix : str, optional
112108 Specify an install prefix for the kernelspec.
113109 This is needed to install into a non-default location, such as a conda/virtual-env.
114- env: dict, optional
110+ env : dict, optional
115111 A dictionary of extra environment variables for the kernel.
116112 These will be added to the current environment variables before the
117113 kernel is started
118114
119115 Returns
120116 -------
121-
122117 The path where the kernelspec was installed.
123118 """
124119 if kernel_spec_manager is None :
0 commit comments