Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupyter-sphinx generate a "jupyter_execute" folder #215

Closed
12rambau opened this issue Dec 19, 2022 · 2 comments
Closed

jupyter-sphinx generate a "jupyter_execute" folder #215

12rambau opened this issue Dec 19, 2022 · 2 comments
Labels

Comments

@12rambau
Copy link
Contributor

I run the following code to build my documentation:

sphinx-build -b html docs/source build

and in one of my file there is the following cell to execute:

.. jupyter-execute:: 

   import pygadm 

   gdf = pygadm.get_items(name="Singapore", content_level=1)
   gdf.plot(cmap = "viridis")

For a reason I can't explain building the documentation creates a jupyter_execute folder at the root of my lib. Am I missing a parameter or is it a bug ?
I would expect this to end-up in the build folder.

If an example is needed, you can find the example here: https://github.com/12rambau/pygadm

@akhmerov akhmerov added the bug label Dec 19, 2022
@akhmerov
Copy link
Member

Thanks for reporting, I can confirm that this is a bug.

@12rambau
Copy link
Contributor Author

the error was coming from me. I stopped using the make html command from docs source but instead used sphinx-build -b html docs/source build from the repository root. As the outputdir is automatically deteted from your side it wasn't working:

def output_directory(env):

Now that I run the more appropriate:

sphinx-build -b html docs/source docs/build/html

It works as expected.

Sorry for the noise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants