Skip to content

Bad path created for jupyter_execute temporary directory #283

Open
@rikardn

Description

@rikardn

The utils.output_directory function always returns /tmp/jupyter_execute on my computer. I suspect this to be an error and the intention being to be inside of the Sphinx directory. In my case the env.app.outdir is /tmp/tmpi78777b43. I checked if this path has changed in recent versions of Sphinx, but I found no differences between Sphinx 7.4.3, 7.0.0 and 8.1.3 .

A solution would be to remove the os.path.pardir.

The problem with the current behaviour is that the same directory will be used by all users on a multiuser system which can cause permission errors if running simultaneously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions