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

Interrupt code breaks sometimes #1338

Open
chrstfer opened this issue Dec 8, 2023 · 1 comment
Open

Interrupt code breaks sometimes #1338

chrstfer opened this issue Dec 8, 2023 · 1 comment
Labels
bug bug & failures with existing packages help wanted

Comments

@chrstfer
Copy link

chrstfer commented Dec 8, 2023

🐛 Bug

When running certain code it becomes impossible to interrupt the kernel until that code completes.

To Reproduce

import sklearn
# get large dataset on the order of 1e6 or 1e7
df = ...
sklearn.preprocessing.QuantileTransformer(subsample=1e7, n_quantiles=1e6).fit_transform(df)

Expected behavior

It should interrupt!

Additional context

That's just an example, I've seen it plenty of times over the last few weeks, usually for commands I'd expect to take a while but that I want to stop midway to tweak something. That just seemed like an easy to replicate example. Oddly enough, the QuantileTransformer will interrupt just fine when n_quantiles is an order of magnitude smaller.

@chrstfer chrstfer added bug bug & failures with existing packages help wanted labels Dec 8, 2023
@chrstfer
Copy link
Author

chrstfer commented Dec 8, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug & failures with existing packages help wanted
Projects
None yet
Development

No branches or pull requests

1 participant