Connect a qtconsole to the current kernel.
This is useful for connecting a second qtconsole to a kernel, or to a local notebook.
Parameters : | connection_file : str [optional]
argv : list [optional]
profile : str [optional]
|
---|---|
Returns : | subprocess.Popen instance running the qtconsole frontend : |
find a connection file, and return its absolute path.
The current working directory and the profile’s security directory will be searched for the file if it is not given by absolute path.
If profile is unspecified, then the current running application’s profile will be used, or ‘default’, if not run from IPython.
If the argument does not match an existing file, it will be interpreted as a fileglob, and the matching file in the profile’s security dir with the latest access time will be used.
Parameters : | filename : str
profile : str [optional]
|
---|---|
Returns : | str : The absolute path of the connection file. |
Return the path to the connection file of an app
Parameters : | app : KernelApp instance [optional]
|
---|
Return the connection information for the current Kernel.
Parameters : | connection_file : str [optional]
unpack : bool [default: False]
profile : str [optional]
|
---|---|
Returns : | The connection dictionary of the current kernel, as string or dict, : depending on `unpack`. : |
strip frontend-specific aliases and flags from an argument list
For use primarily in frontend apps that want to pass a subset of command-line arguments through to a subprocess, where frontend-specific flags and aliases should be removed from the list.
Parameters : | argv : list(str)
aliases : container of aliases (dict, list, set, etc.)
flags : container of flags (dict, list, set, etc.)
|
---|---|
Returns : | argv : list(str)
|
tunnel connections to a kernel via ssh
This will open four SSH tunnels from localhost on this machine to the ports associated with the kernel. They can be either direct localhost-localhost tunnels, or if an intermediate server is necessary, the kernel must be listening on a public IP.
Parameters : | connection_info : dict or str (path)
sshserver : str
sshkey : str [optional]
|
---|---|
Returns : | (shell, iopub, stdin, hb) : ints
|