Kaggle / Kaggle/docker-python

Interrupt code breaks sometimes

Đang mở
#1,338 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug help wanted
Ngôn ngữ chính
Python
Star
2.7k
Fork
1k
Merge trung bình
7 ngày 14 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.