-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Hi,
I'm struggling to figure out how to not parse, but add a .py file. For example, if I have plot_example.py
:
"""
Example
=======
:download:`model <model.py>`
"""
import model
and adjacent to that file is model.py
. So:
examples/
plot_example.py
model.py
I would like plot_example.py
to be parsed and executed as normal, to create an example, but I want model.py
to simply be copied to the gallery directory so that it can be imported when plot_example.py
is executed and my download link works so someone can downloaded if needed. I don't want to parse model.py
, i.e. `so no generation of model.rst, model.ipynb, etc."
I've tried these things:
- ignore pattern with "model" in it and then add py to the copyfile_regex
- change filename_pattern to something like
'^(?!.*model_).*plot_'
(but I think all py files are parsed regardless of what this pattern is)
Do you have a suggestion of how to do this?
Metadata
Metadata
Assignees
Labels
No labels