Kaggle / Kaggle/docker-python

Interrupt code breaks sometimes

未关闭
#1,338 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
Python
星标
2.7k
派生
1k
平均合并
7 天 14 小时
30 天内合并 PR
2

描述

## 🐛 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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。