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

Fix Handling of shell.should_run_async #605

Merged
merged 1 commit into from
Mar 18, 2021
Merged

Fix Handling of shell.should_run_async #605

merged 1 commit into from
Mar 18, 2021

Conversation

afshin
Copy link
Member

@afshin afshin commented Mar 18, 2021

Fixes #540

@blink1073 blink1073 added this to the 6.0 milestone Mar 18, 2021
@blink1073 blink1073 merged commit b84f023 into ipython:master Mar 18, 2021
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thanks!

@jccurtis
Copy link

Yes thank you! Is there a planned release with this fix?

@blink1073
Copy link
Contributor

@meeseeksdev please backport to 5.5.x

meeseeksmachine pushed a commit to meeseeksmachine/ipykernel that referenced this pull request Mar 18, 2021
blink1073 added a commit that referenced this pull request Mar 18, 2021
…on-5.5.x

Backport PR #605 on branch 5.5.x (Fix Handling of shell.should_run_async)
@blink1073
Copy link
Contributor

Done! https://pypi.org/project/ipykernel/5.5.1/

@blink1073
Copy link
Contributor

I deleted https://pypi.org/project/ipykernel/5.5.1 because we would have to upgrade our ipython dependency to 7.17, which doesn't make sense in a patch release. cf #607. This will have to wait for the next minor or major release, whichever comes first.

@Carreau
Copy link
Member

Carreau commented Mar 19, 2021

Noooooooooo.

That reintroduce the exact bug the change of API was meant to prevent. We have transformers that are stateful; they destroy data if called twice.

self.shell.transform_cell(code) should not be called twice in an execution loop. The warning is there for a reason.

@afshin
Copy link
Member Author

afshin commented Mar 22, 2021

That reintroduce the exact bug the change of API was meant to prevent. We have transformers that are stateful; they destroy data if called twice.

self.shell.transform_cell(code) should not be called twice in an execution loop. The warning is there for a reason.

Ah, did we miss passing transformed_cell and preprocessing_exc_tuple here and perhaps here?

blink1073 added a commit that referenced this pull request Mar 30, 2021
Revert Backport of #605: Fix Handling of shell.should_run_async
@blink1073 blink1073 added the bug label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants