{ } Raw JSON

bundles / jupyter_client latest / jupyter_client / connect / find_connection_file

function

jupyter_client.connect:find_connection_file

source: /jupyter_client/connect.py:206

Signature

def find_connection_file(filename: str = kernel-*.json, path: str | list[str] | None = None, profile: str | None = None) → str

Summary

find a connection file, and return its absolute path.

Extended Summary

The current working directory and optional search path will be searched for the file if it is not given by absolute path.

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

The connection file or fileglob to search for.

path : str or list of strs[optional]

Paths in which to search for connection files.

Returns

str : The absolute path of the connection file.

Aliases

  • jupyter_client.find_connection_file