简体   繁体   English

如何调试在导入 Jupyter 时杀死我的 kernel 的模块?

[英]How do I debug a module that kills my kernel on import to Jupyter?

Every time I import nlpaug.augmenter.word from the NLPAug package into a Jupyter notebook, my kernel dies.每次我将 nlpaug.augmenter.word 从NLPAug package导入 Jupyter 笔记本时,我的 kernel 都会死掉。

This is frustrating.这令人沮丧。 But also frustrating is I can't figure out what is going on with the import when my kernel dies, If I had that.但同样令人沮丧的是,当我的 kernel 死机时,我无法弄清楚导入发生了什么,如果我有的话。 I'd have a better sense of what was going wrong.我会更好地了解出了什么问题。

This only happens on a Google VM (8 CPUs, 30 GB), but not on my less-powerful MacBook... but I want to use the package on the (much more powerful) VM.这仅发生在 Google VM(8 个 CPU,30 GB)上,但不会发生在功能较弱的 MacBook 上……但我想在(更强大的)VM 上使用 package。

Is there a way to make the import function less opaque?有没有办法让进口 function 不透明?

Can you share more information about that?你能分享更多关于这方面的信息吗? I also use this library in an even bigger VM without issue.我还在更大的虚拟机中使用这个库,没有问题。

I guest it is caused by kernel corruption我客人这是由 kernel 损坏引起的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM