-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add plots to docstrings of experiment classes #391
Comments
Hey @drbenvincent, Can I pick this issue? |
Hi @harsha-mangena. Sounds good - but we're just about to merge a PR which is a pretty major code refactor. So we need to wait until #381 is merged first or any work done will be messed up. Can you check back toward the end of next week? It should (hopefully) be merged then. |
@drbenvincent, No problem. I will check this issue next week. |
Just a quick ping on this @harsha-mangena to see if you were still interested on working on this issue? |
Hey, if there's no progress on this issue, can I try working on it? |
Hi, I am trying to build the docs locally by following the contribution guidelines, but whenever I try to run
I've created the environment and followed the steps as mentioned in the guidelines. Would really appreciate it if I'd get some help in solving this. |
Quick response for the moment... When you run that command are you in the causalpy/docs folder? |
Yes, I'm running the command from the docs folder. |
Any update with regards to the issue? |
It might be nice to make the api docs (auto build from the docstrings) more engaging by adding some plots. As far as I can tell, it is possible to take the code that we have in the doctests right now and also generate a plot that is rendered in the docs.
This could be relevant for the experiment classes in particular. I don't see any value in adding to the model classes for example.
Here's an example of current docs:
If we add the plot method into that code snippet, then we can get that plot to render in the built docs.
I believe (though have not verified) that we can do this as follows:
If that works as I imagine, then this will:
I have not verified that this works, but I imagine there is a way!
Notes
plt.show()
at the end.sphinx.ext.doctest
. Would need to look into this.sphinx.ext.plot_directive
to the list of extensions inconf.py
.The text was updated successfully, but these errors were encountered: