jupyter / jupyter-sphinx

Sphinx extension for rendering of Jupyter interactive widgets.
https://jupyter-sphinx.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
188 stars 65 forks source link

Bad path created for `jupyter_execute` temporary directory #283

Open rikardn opened 1 month ago

rikardn commented 1 month ago

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.