Skip to content
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

reorder preprocessors #14

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Apr 30, 2015

  • ensure execute runs first
  • ensure extract output runs last

Any operations on outputs are incorrect if done before execute. Similarly, any modifications should be done before extraction.

Thanks @olgabot for revealing the problem.

This should be backported for IPython 3.x.

@@ -227,6 +229,7 @@ def _init_preprocessors(self):
# Load user-specified preprocessors. Enable by default.
for preprocessor in self.preprocessors:
self.register_preprocessor(preprocessor, enabled=True)
print([ p for p in self._preprocessors ])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover debugging code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

- ensure execute runs first
- ensure extract output runs last

Any operations on outputs are incorrect if done before execute.
Similarly, any modifications should be done before extraction.
takluyver added a commit that referenced this pull request Apr 30, 2015
@takluyver takluyver merged commit a359426 into jupyter:master Apr 30, 2015
@takluyver
Copy link
Member

Merged - I'll have a go at the backport.

takluyver added a commit to takluyver/ipython that referenced this pull request Apr 30, 2015
@takluyver takluyver modified the milestone: 4.0 Jul 30, 2015
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.

None yet

2 participants