Skip to content

BLD/DOC: report context on warnings and add :okwarning: to ipython_directive #6082

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

Merged
1 commit merged into from Jan 25, 2014
Merged

BLD/DOC: report context on warnings and add :okwarning: to ipython_directive #6082

1 commit merged into from Jan 25, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jan 25, 2014

I plan to get this upstream soon, unless joris find bugs.

Reports context on warnings just like recently added context for raised exceptions.
adds :okwarning: option to ipython directive to suppress them.

reading sources... [  6%] basics                                                                        

>>>-------------------------------------------------------------------------
Warning raised in /home/user1/src/pandas/doc/source/basics.rst at line 734:
----------------------------------------------------------------------------
/home/user1/src/pandas/pandas/core/frame.py:2805: FutureWarning: TimeSeries broadcasting along DataFrame index by default is deprecated. Please use DataFrame.<op> to explicitly broadcast arithmetic operations along the index
  FutureWarning)

<<<-------------------------------------------------------------------------

Let's get rid of the noise.

ghost pushed a commit that referenced this pull request Jan 25, 2014
BLD/DOC: report context on warnings and add :okwarning: to ipython_directive
@ghost ghost merged commit fe8fe38 into pandas-dev:master Jan 25, 2014
@ghost ghost deleted the PR_ipython_directive branch January 25, 2014 01:48
@jorisvandenbossche
Copy link
Member

@y-p This is really fantastic! I tested it and it seems to work perfectly. Up to a completely warning/error free doc build.

Did you already introduce this in the source code of the docs? Hopefully not (I hadn't seen it), because I have a little PR ready.

@ghost
Copy link
Author

ghost commented Jan 25, 2014

I was hoping that by giving you tools to painlessly handle it, you will.
Hey, it worked! ;)

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

Successfully merging this pull request may close these issues.

1 participant