简体   繁体   中英

macOS Terminal and Python interruption

I'm not sure how easy a problem this will be to replicate, but I consistently run into this issue:

>>> result_df.shap^C^C^C
KeyboardInterrupt

Basically, I'll attempt to type result_df.shape and I'll get "stonewalled" at result_df.shap . This isn't exclusive to trying that exact command - this issue does not discriminate. The only way to get back to the >>> empty prompt is to mash Ctrl + C .

Any thoughts as to why this might be?

Here are some potentially relevant specs:

MacBook Pro (15-inch, 2016)
macOS High Sierra, 10.13.6

Troubleshooting input issues:

  1. Check that your keyboard is not the issue by typing random words and importantly the commands that gave you trouble, and log the keystrokes. A keyboard tester web site is just a google away (I found this immediately but can't attest to quality.)

  2. Disconnect and reconnect your keyboard.

  3. Reproduce the issue on another computer.

  4. Edit your SO post showing the repro

If you follow this procedure I think it will help you find the issue!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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