create_temp_path

create_temp_path(notebook_path: str, temp_base_path: str) str[source]

Create the path for a parsed jupyter notebook.

The path has the same relative position to temp_base_path as notebook_path has to os.curdir. If that would lead out of the temp_base_path, the path will point to a file at the root of temp_base_path, which has the same filename as the file at notebook_path has.

Parameters:
  • notebook_path (str) – Path to a notebook.

  • temp_base_path (str) – Base path of a temporary folder, the new path should have the same relative position to as notebook_path has to os.curdir

Returns:

Path to the temporary file which should be created.

Return type:

str