You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am just building a gallery for TM, and some examples will have additional dependencies, so I was thinking about using the Jupyter approach and adding ! pip install ... to install required packages instead of having an extra file with all requirements for the whole gallery. Advenatge of ! pip install would be reproducibility as a user would download a particular sample and still would be executable
If I understood correctly, you want to pip install when building the docs?
promote_jupyter_magic adds code blocks to Jupyter notebooks. Code block starting with jupyter cell magic, inside of a 'text' block will be promoted to a code block when making Jupyter notebook.
When only execute python via AST when building the gallery. I am not sure we want to add bash commands in...
If I understood correctly, you want to pip install when building the docs?
Correct
promote_jupyter_magic adds code blocks to Jupyter notebooks. Code block starting with jupyter cell magic, inside of a 'text' block will be promoted to a code block when making Jupyter notebook.
I am just building a gallery for TM, and some examples will have additional dependencies, so I was thinking about using the Jupyter approach and adding
! pip install ...
to install required packages instead of having an extra file with all requirements for the whole gallery. Advenatge of! pip install
would be reproducibility as a user would download a particular sample and still would be executableHere is what I tried:
also
failed with
inspired from https://sphinx-gallery.github.io/stable/configuration.html#making-cell-magic-executable-in-notebooks
The text was updated successfully, but these errors were encountered: