Kernel dies when pandas.read_clipboard() is called
See original GitHub issueDescription of your problem
Whenever I try to load a dataframe from the clipboard with pandas.read_clipboard() I see the message “It seems the kernel died unexpectedly. Use ‘Restart kernel’ to continue using this console.”
What steps will reproduce the problem?
- Copy some table to clipboard:
c1 c2 c3 c4
0 1 2 2 1
1 1 3 2 3
2 3 4 4 3
3 4 5 6 5
4 5 6 9 7
- Import pandas and call read_clipboard
import pandas as pd
df = pd.read_clipboard()
What is the expected output? What do you see instead?
It is expected to have the table loaded in the dataframe df. Instead, it displays the message:
It seems the kernel died unexpectedly. Use ‘Restart kernel’ to continue using this console.
Please provide any additional information below
I have two environments: one with Python 2.7.11 (named p2) and one with Python 3.5.1 (named p3). Root environment also has Python 3.5.1. The problem does not occur in p2. With Python 3.5.1 it occurs with both pandas v0.18.0 and v0.18.1.
If I run Python (3.5.1 with root env or with p3 env.) from the command line, it loads the dataframe with no errors.
Environment p3 in Spyder:
Root environment:
Environment p3 in command line:
Environment p3 with IPython from the command line:
Versions and main components
- Spyder Version: 2.3.8
- Python Version: 3.5.1
- Operating system: Windows 10 Pro 64-bit
Dependencies
IPython >=1.0 : 4.1.2 (OK) jedi >=0.8.1;<0.9.0: 0.9.0 (NOK) matplotlib >=1.0 : 1.5.1 (OK) pandas >=0.13.1 : 0.18.1 (OK) pep8 >=0.6 : 1.7.0 (OK) pyflakes >=0.6.0 : 1.1.0 (OK) pygments >=1.6 : 2.1.1 (OK) pylint >=0.25 : None (NOK) qtconsole >=4.0 : 4.2.0 (OK) rope >=0.9.2 : 0.9.4-1 (OK) sphinx >=0.6.6 : 1.3.1 (OK) sympy >=0.7.3 : 1.0 (OK) zmq >=2.1.11 : 15.2.0 (OK)
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (5 by maintainers)

Top Related StackOverflow Question
Closing because there’s nothing we can do in Spyder about this.
See Pandas documentation to use read_clipboard (Anaconda Package) It seems pandas read_clipboard need optional dependencies which are not yet compatible with python 3.5. I guess that’s hindrance for read_clipboard
http://pandas.pydata.org/pandas-docs/stable/install.html#optional-dependencies
Doesn’t have any issue in Python 3.4 (Anaconda Package)