-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: freeze old whatsnew notes? #6856
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
Comments
i think maybe easiest to simply comment out the code and say its been replaced in that version (and show the alternative). for most of these this should be easy just an argument name change. I'll put the example up for replacing with code-blocks is ok too (though actually a nice comment IMHO is more informative) |
That's also an option. But it's indeed maybe simpler and more informative to just adapt and comment that example. |
fixed HDFStore.unique issue in c1440e9 |
http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#v0-10-1-january-22-2013 (except for the typo of course!) |
can you post what's still outstadning on this? (if you have handy) |
Not that I know of. There are in any case no doc build warnings/errors at the moment. (but the problem is that you don't always notice it if something has changed in the output of the code so the explanation does not really make sense anymore). |
ok...will leave open and i'll guess will just have to review all whats new for sensibility |
I think we should just make a choice:
The easiest solution is the first, although I have a slight preference for the second (I see it as an historical overview, and not as up to date docs. Downside is that if people are looking at older whatsnews they see possibly outdated code). But no strong opinion on this. |
@jorisvandenbossche IIRC you fixed this? |
update on this. These older However, it would be nice to changes examples from using ipython -> code-blocks to:
|
This would indeed be nice to do (at least for the very old ones, for the relatively recent ones it is still a good way sometimes to capture errors) I at some point looked into a kind of 'text' sphinx builder that would output what we want, but never really figured it out. I think it should be somehow possible (eg numpydoc also emits the intermediate generated source code that is never saved in a file to build the actual docstring page when using very verbose mode) |
While working on #36838 I got exactly this issue. If I understand it correctly we want to remove the |
@avinashpancham sorry for the late reply, but yes, I think that's still something we want to do. (ideally we would have a way to do this automatically, though, I think. In theory it should be possible with some sphinx / ipython directive hacks I think) |
See #41464 for how to freeze old whatsnew notes. It's very simple but labor-intensive. |
Yeah, if we want to do this for the later (and much bigger) whatsnew files as well, I think some automatic method (using sphinx / ipython directive) would be better |
I'm digging into older "easy" tickets and hoping to brush off my contribution skills. I see two issues here:
For 1. it's definitely labor intensive but not undoable, I'm happy to help tackle. Would we want to split this into two issues? I can submit a new one for the tooling enhancement. Then we could use this one to run a check list of the outstanding docs to convert so that this can still be closed with a goal in mind. |
Hi Everyone! I have been doing a bunch of digging on this topic. I've come down on this solution that allows you to lock-in a specific version of a library for build time. This would require the builder to install all the possible versions of pandas on the build machine. That is possible with a requires file and then we would include a global import for that specific version at the top of the page for that version. There's also an option to drop that work into the However, over time I am agreeing with the idea that there likely is no real value in re-running all these old code snippets during build time. The only real value I can see is when a change is back-ported then the value in a static code block won't change. This however is a rare occurrence and the docs being wrong should be significantly less of an issue than trying to wedge something into the build machine and putting heavier onus on contributors. I'm going to get started converting all the old iPython directive blocks into Let me know if you have other ideas! -Derrick |
Can this be closed? |
I think this would still be nice to do |
Sounds good! This looks like it needs some refactoring, updating, and just basic maintenance. Would you like some help on it? |
A problem with using the ipython directory for the whatsnew/release parts of the docs (so that all code examples are run during the doc build), is that after a while when things change/get deprecated, these pages don't build correctly anymore, generating warnings/exceptions.
An example: http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#hdfstore, with the
unique
attribute that was removed recently in #6813I don't think we should start updating the older whatsnew docs (they are a kind of historical overview), but we should do something as those doc build warnings are annoying. A proposal:
ipython
directory blocks to literalcode-blocks
with output.An alternative is to add
:okexcept:
to those ipython code-blocks; this would solve the warnings during the doc build, but not the 'faulty' output in the docs itself.The text was updated successfully, but these errors were encountered: