jupyter-sphinx icon indicating copy to clipboard operation
jupyter-sphinx copied to clipboard

Bad path created for `jupyter_execute` temporary directory

Open rikardn opened this issue 1 year ago • 0 comments

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.

rikardn avatar Oct 22 '24 12:10 rikardn