Skip to content

Pr ipython directive context #6075

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
2 commits merged into from Jan 24, 2014
Merged

Pr ipython directive context #6075

2 commits merged into from Jan 24, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jan 24, 2014

Running Sphinx v1.1.3
loading pickled environment... not yet created
loading intersphinx inventory from http://statsmodels.sourceforge.net/devel/objects.inv...
loading intersphinx inventory from http://docs.python.org/objects.inv...
building [html]: targets for 2 source files that are out of date
updating environment: 2 added, 0 changed, 0 removed
reading sources... [ 50%] dsintro                                                                       

>>>-------------------------------------------------------------------------
Exception in /home/user1/src/pandas/doc/source/dsintro.rst at line 33: # <<<< This is new
---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-4-05c9758a9c21> in <module>()
----> 1 1/0

ZeroDivisionError: integer division or modulo by zero
<<<-------------------------------------------------------------------------

No more excruciating "guess where" on errors.

ghost pushed a commit that referenced this pull request Jan 24, 2014
@ghost ghost merged commit afed652 into pandas-dev:master Jan 24, 2014
@ghost ghost deleted the PR_ipython_directive_context branch January 24, 2014 23:47
@cpcloud
Copy link
Member

cpcloud commented Jan 24, 2014

😂

@jorisvandenbossche
Copy link
Member

Nice!

Furthermore, if you want to look it up in the html docs (and not in the source code for which you need line numbers), then you can also look at the <ipython-input-4-05c9758a9c21> in <module>() which means the error happend at ipython prompt 4 (In [4])

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.

2 participants